Class ArmPosition
java.lang.Object
frc.robot.subsystems.mechanisms.arm.ArmPosition
Class that represents a position of the Arm, including both Elevator and Pivot positions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe elevator position, as a distance from the fully retracted position.The pivot angle, as an angle from the field (90 degrees is straight up). -
Constructor Summary
ConstructorsConstructorDescriptionArmPosition
(Distance elevatorPosition, Angle pivotAngle) A combined elevator and pivot position. -
Method Summary
-
Field Details
-
elevatorPosition
The elevator position, as a distance from the fully retracted position. -
pivotAngle
The pivot angle, as an angle from the field (90 degrees is straight up).
-
-
Constructor Details
-
ArmPosition
A combined elevator and pivot position.- Parameters:
elevatorPosition
- TheelevatorPosition
to set.pivotAngle
- ThepivotAngle
to set.
-
-
Method Details
-
getElevatorPosition
Gets theelevatorPosition
.- Returns:
- The elevator's position.
-
getPivotAngle
Gets thepivotAngle
.- Returns:
- The pivot's angle.
-