Package 

Class MotorParams


  • 
    public class MotorParams
    
                        

    This is a helper class for motor configuration. Teams still need to write the code to set these in the motors.

    • Constructor Detail

      • MotorParams

        MotorParams(String name, MotorParams.Mode mode, boolean invert)
        Constructs a new instance of the Motor Params class.
        Parameters:
        name - Motor name
        mode - Motor run mode
        invert - 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 name
        mode - Motor run mode
        invert - true if the motor needs to be inverted, false otherwise
        positionPid - position custom PID
        velocityPid - velocity custom PID