Class MountPoseConfigs
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.public class MountPoseConfigs : IParentConfiguration, ISerializable, ICloneable
- Inheritance
-
MountPoseConfigs
- Implements
- Inherited Members
Fields
MountPosePitch
The mounting calibration pitch-component.
- Minimum Value-360
- Maximum Value360
- Default Value0
- Unitsdeg
public double MountPosePitch
Field Value
MountPoseRoll
The mounting calibration roll-component.
- Minimum Value-360
- Maximum Value360
- Default Value0
- Unitsdeg
public double MountPoseRoll
Field Value
MountPoseYaw
The mounting calibration yaw-component.
- Minimum Value-360
- Maximum Value360
- Default Value0
- Unitsdeg
public double MountPoseYaw
Field Value
Methods
Clone()
Creates a copy of this config group.
public MountPoseConfigs Clone()
Returns
Deserialize(string)
Deserialize string and put values into this object
public StatusCode Deserialize(string to_deserialize)
Parameters
to_deserializestringString to deserialize
Returns
- StatusCode
OK if deserialization is OK
Serialize()
Serialize this object into a string
public string Serialize()
Returns
- string
This object's data serialized into a string
ToString()
Provides the string representation of this object
public override string ToString()
Returns
WithMountPosePitch(double)
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 Value360
- Default Value0
- Unitsdeg
public MountPoseConfigs WithMountPosePitch(double newMountPosePitch)
Parameters
newMountPosePitchdoubleParameter to modify
Returns
- MountPoseConfigs
Itself
WithMountPoseRoll(double)
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 Value360
- Default Value0
- Unitsdeg
public MountPoseConfigs WithMountPoseRoll(double newMountPoseRoll)
Parameters
newMountPoseRolldoubleParameter to modify
Returns
- MountPoseConfigs
Itself
WithMountPoseYaw(double)
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 Value360
- Default Value0
- Unitsdeg
public MountPoseConfigs WithMountPoseYaw(double newMountPoseYaw)
Parameters
newMountPoseYawdoubleParameter to modify
Returns
- MountPoseConfigs
Itself