Package com.ctre.phoenix6.configs
Class MountPoseConfigs
java.lang.Object
com.ctre.phoenix6.configs.MountPoseConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
public class MountPoseConfigs extends Object implements ParentConfiguration
Configs for Pigeon 2's Mount Pose configuration.
These configs allow the Pigeon2 to be mounted in whatever orientation that's desired and ensure the reported Yaw/Pitch/Roll is from the robot's reference.
-
Field Summary
Fields Modifier and Type Field Description double
MountPosePitch
The mounting calibration pitch-component Minimum Value: -360 Maximum Value: 360 Default Value: 0 Units: degdouble
MountPoseRoll
The mounting calibration roll-component Minimum Value: -360 Maximum Value: 360 Default Value: 0 Units: degdouble
MountPoseYaw
The mounting calibration yaw-component Minimum Value: -360 Maximum Value: 360 Default Value: 0 Units: deg -
Constructor Summary
Constructors Constructor Description MountPoseConfigs()
-
Method Summary
Modifier and Type Method Description StatusCode
deserialize(String to_deserialize)
String
serialize()
String
toString()
MountPoseConfigs
withMountPosePitch(double newMountPosePitch)
Modifies this configuration's MountPosePitch parameter and returns itself for method-chaining and easier to use config API.MountPoseConfigs
withMountPoseRoll(double newMountPoseRoll)
Modifies this configuration's MountPoseRoll parameter and returns itself for method-chaining and easier to use config API.MountPoseConfigs
withMountPoseYaw(double newMountPoseYaw)
Modifies this configuration's MountPoseYaw parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
MountPoseYaw
The mounting calibration yaw-component- Minimum Value: -360
- Maximum Value: 360
- Default Value: 0
- Units: deg
-
MountPosePitch
The mounting calibration pitch-component- Minimum Value: -360
- Maximum Value: 360
- Default Value: 0
- Units: deg
-
MountPoseRoll
The mounting calibration roll-component- Minimum Value: -360
- Maximum Value: 360
- Default Value: 0
- Units: deg
-
-
Constructor Details
-
MountPoseConfigs
public MountPoseConfigs()
-
-
Method Details
-
withMountPoseYaw
Modifies this configuration's MountPoseYaw parameter and returns itself for method-chaining and easier to use config API.The mounting calibration yaw-component
- Minimum Value: -360
- Maximum Value: 360
- Default Value: 0
- Units: deg
- Parameters:
newMountPoseYaw
- Parameter to modify- Returns:
- Itself
-
withMountPosePitch
Modifies this configuration's MountPosePitch parameter and returns itself for method-chaining and easier to use config API.The mounting calibration pitch-component
- Minimum Value: -360
- Maximum Value: 360
- Default Value: 0
- Units: deg
- Parameters:
newMountPosePitch
- Parameter to modify- Returns:
- Itself
-
withMountPoseRoll
Modifies this configuration's MountPoseRoll parameter and returns itself for method-chaining and easier to use config API.The mounting calibration roll-component
- Minimum Value: -360
- Maximum Value: 360
- Default Value: 0
- Units: deg
- Parameters:
newMountPoseRoll
- Parameter to modify- Returns:
- Itself
-
toString
-
deserialize
- Specified by:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-