CrossTheRoadElec / Phoenix-api

CTRE Phoenix language API (targets FIRST Robotics Competition, Linux, RaspPi, Windows)
Other
39 stars 28 forks source link

Java: BaseMotorController.follow calls set twice #35

Closed virtuald closed 3 years ago

virtuald commented 6 years ago

        switch (followerType){
            case PercentOutput:
                set(ControlMode.Follower, (double)id24);
                break;
            case AuxOutput1:
              /* follow the motor controller, but set the aux flag
             * to ensure we follow the processed output */
              set(ControlMode.Follower, (double)id24, DemandType.AuxPID, 0);
                break;
            default:
              neutralOutput();
                break;
        }
JCaporuscio commented 3 years ago

This has been fixed since 5.8.0