Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

Blocks setDualVelocity is not a function #248

Closed

Description

@slylockfox

in 5.4, using blocks, you can add a dual-motor set block, and change the property from Power to Velocity. When I ran an opmode like this, the opmode crashed. The RC log contains this error:

06-14 20:48:56.099 5054 5432 E RobotCore: BlocksOpMode - "Velocity-Test-2" - main/JavaBridge - caughtException - message is TypeError: motorLAsDcMotor.setDualVelocity is not a function

The single-motor blocks seem to work correctly.

Activity

  1. lizlooney commented on Jun 15, 2020

    @lizlooney

    Yikes. Looks (from the code) that setDualTargetPositionTolerance might also crash. Thanks for the bug report!

  2. lizlooney commented on Jun 15, 2020

    @lizlooney

    Actually, I think setDualTargetPositionTolerance is OK. Just setDualVelocity is broken.

  3. ftctechnh commented on Jul 20, 2020

    @ftctechnh
    Contributor

    @slylockfox This will be fixed in a future release of the FTC SDK software. A change was introduced, tested, and merged into the private repository. This change will be included with the next release of the software. Thank you for reporting this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions