-
Notifications
You must be signed in to change notification settings - Fork 0
SubSys_Arm
Used for controlling the robots Arm as well as the calculations to stop the robot from moving outside of bounds
Rotates the arm
Inputs:
-
lockedMode(Int):0: Does not stop, Ignores boundaries
1: Accepts positive
percentOutputvalues, not negative2: Accepts negative
percentOutputvalues, not positive -
percentOutput(Double):-1.0 -> 1.0: How fast the arm should rotate in percent of the max motor speed
Usage Example:
package frc.robot.Example; //Define package
import frc.robot.ChargedUp.Arm.SubSys_Arm; //Import Subsystem
public class ExampleClass() {
SubSys_Arm.RotateArm(0, 1.0); //Roate the arm at 100% speed, ignoring boundaries
}
Rotates the arm inside of the maximum bounds of the robot
Inputs:
-
percentOutput(Double):-1.0 -> 1.0: How fast the arm should rotate in percent of the max motor speed
Usage Example:
package frc.robot.Example; //Define package
import frc.robot.ChargedUp.Arm.SubSys_Arm; //Import Subsystem
public class ExampleClass() {
SubSys_Arm.RotateArm_InBounds(1.0); //Roate the arm at 100% speed, staying inside boundaries
}
Extends the arm
Inputs:
-
lockedMode(Int):0: Does not stop, Ignores boundaries
1: Accepts positive
percentOutputvalues (extending), not negative (retracting)2: Accepts negative
percentOutputvalues (retracting), not positive (extending)3: Move fast while
percentOutputis positive (extending), but moves at a slower speed whenpercentOutputis negative (retracting) -
percentOutput(Double):-1.0 -> 1.0: How fast the arm should extend in percent of the max motor speed
Usage Example:
package frc.robot.Example; //Define package
import frc.robot.ChargedUp.Arm.SubSys_Arm; //Import Subsystem
public class ExampleClass() {
SubSys_Arm.ExtendArm(0, 1.0); //Extend the arm at 100% speed, ignoring boundaries
}
Extends the arm inside of the maximum bounds of the robot
Inputs:
-
percentOutput(Double):-1.0 -> 1.0: How fast the arm should extend in percent of the max motor speed
Usage Example:
package frc.robot.Example; //Define package
import frc.robot.ChargedUp.Arm.SubSys_Arm; //Import Subsystem
public class ExampleClass() {
SubSys_Arm.ExtendArm_InBounds(0, 1.0); //Extend the arm at 100% speed, staying inside boundaries
}
- None