Skip to content

ExpansionHubMotor.setReversed() stopped working #314

Description

@pjreiniger

At some point calling setReversed() on any of our motors stopped taking effect. It worked at some point to flip our motors, but now it doesn't take affect for any motor.

The motor still can run, we can get encoder position / velocity, we can reset the encoder, but setReversed does nothing.

class ShooterSubsystem(Subsystem):
    def __init__(self):
        self.shooter_motor = wpilib.ExpansionHubMotor(0, 0)
        self.shooter_motor.setReversed(True) # Swapping this to False has no effect

RobotPy 2027.0.0a6.post1
Beta Systemcore HW, limelightosr-beta-11
Repo
Hybrid setup with 2 expansion hubs

Power cycles don't help, and I ssh'd into the systemcore to validate the file is getting deployed correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    PendingA fix has been made but not yet released

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions