This class is where all the devices and defined and configured and all the necessary functions needed to maintain/run the Arm Subsystem Class. More...
Public Member Functions | |
ArmDefinition () | |
Constructor for Defining and Initializing Motors and other items responsible for the Arm. | |
void | updateInputs (ArmIOInputs inputs) |
Updates all the listed variables stored. | |
void | stop () |
Sets the following Motors to a Netural Mode, which stops all the motors from running. | |
void | setPositionControl (double positionRotations) |
This method uses a simple position control to move the arm to a specific position (in rotations). | |
void | setMotionControl (double positionRotations) |
This method uses Motion Magic to move the arm smoothly to a specific position, considering the velocity and acceleration limits defined in the configuration. | |
![]() |
This class is where all the devices and defined and configured and all the necessary functions needed to maintain/run the Arm Subsystem Class.
In essense, it contains all the functions/methods for the Arm Subsystem class.
frc.robot.subsystems.Arm.ArmDefinition.ArmDefinition | ( | ) |
Constructor for Defining and Initializing Motors and other items responsible for the Arm.
void frc.robot.subsystems.Arm.ArmDefinition.setMotionControl | ( | double | positionRotations | ) |
This method uses Motion Magic to move the arm smoothly to a specific position, considering the velocity and acceleration limits defined in the configuration.
positionRotations | The specific position that the arm would like to move to |
Implements frc.robot.subsystems.Arm.ArmIO.
void frc.robot.subsystems.Arm.ArmDefinition.setPositionControl | ( | double | positionRotations | ) |
This method uses a simple position control to move the arm to a specific position (in rotations).
It sets the desired position for both the leader and follower motors using the PositionVoltage control mode.
positionRotations | The desired position that the arm would like to go to |
Implements frc.robot.subsystems.Arm.ArmIO.
void frc.robot.subsystems.Arm.ArmDefinition.stop | ( | ) |
Sets the following Motors to a Netural Mode, which stops all the motors from running.
Implements frc.robot.subsystems.Arm.ArmIO.
void frc.robot.subsystems.Arm.ArmDefinition.updateInputs | ( | ArmIOInputs | inputs | ) |
Updates all the listed variables stored.
Implements frc.robot.subsystems.Arm.ArmIO.