Skip to content

Using DutyCycleEncoder causes crash on .get #57

@pjreiniger

Description

@pjreiniger

We have a REV Through Bore Encoder that we wired into the roborio since we didn't have a Vortex breakout board. When using it with system core the robot code crashes when calling .get()

It gets constructed fine, and the SmartIO web ui shows that it got auto configured to be a PWM input and displayed seemingly sensical values when we rotated our pivot, but we could not read from the sensor in java.

7:49:35.658 PM
ERROR  1  The startCompetition() method (or methods called by it) should have handled the exception above.  edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:318) Warning  1  The robot program quit unexpectedly. This is usually due to a code error.
  The above stacktrace can help determine where the error occurred.
  See https://wpilib.org/stacktrace for more information.  edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:311) ERROR  1  Unhandled exception: edu.wpi.first.hal.util.HalHandleException:  Code: -1098. HAL: A handle parameter was passed incorrectly  com.gos.reefscape.subsystems.PivotSubsystem.getAbsoluteAngle(PivotSubsystem.java:184) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    PendingA fix has been made but not yet releasedWPILib

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions