-
public class MotorParamsThis is a helper class for motor configuration. Teams still need to write the code to set these in the motors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumMotorParams.ZeroPowerBehaviorpublic enumMotorParams.Mode
-
Field Summary
Fields Modifier and Type Field Description public Stringnamepublic booleaninvertpublic booleandisablepublic MotorParams.ZeroPowerBehaviorzeroPowerBehaviorpublic MotorParams.Modemodepublic PidParamsSimplepositionPidpublic PidParamsSimplevelocityPid
-
Constructor Summary
Constructors Constructor Description MotorParams(String name, MotorParams.Mode mode, boolean invert)Constructs a new instance of the Motor Params class. MotorParams(String name, MotorParams.Mode mode, boolean invert, PidParamsSimple positionPid, PidParamsSimple velocityPid)Constructs a new instance of the Motor Params class.
-
-
-
Constructor Detail
-
MotorParams
MotorParams(String name, MotorParams.Mode mode, boolean invert)
Constructs a new instance of the Motor Params class.- Parameters:
name- Motor namemode- Motor run modeinvert- true if the motor needs to be inverted, false otherwise
-
MotorParams
MotorParams(String name, MotorParams.Mode mode, boolean invert, PidParamsSimple positionPid, PidParamsSimple velocityPid)
Constructs a new instance of the Motor Params class.- Parameters:
name- Motor namemode- Motor run modeinvert- true if the motor needs to be inverted, false otherwisepositionPid- position custom PIDvelocityPid- velocity custom PID
-
-