Table of Contents

Class MountPoseConfigs

Namespace
CTRE.Phoenix6.Configs
Assembly
Phoenix6.Hardware.dll

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

double

MountPoseRoll

The mounting calibration roll-component.

  • Minimum Value-360
  • Maximum Value360
  • Default Value0
  • Unitsdeg
public double MountPoseRoll

Field Value

double

MountPoseYaw

The mounting calibration yaw-component.

  • Minimum Value-360
  • Maximum Value360
  • Default Value0
  • Unitsdeg
public double MountPoseYaw

Field Value

double

Methods

Clone()

Creates a copy of this config group.

public MountPoseConfigs Clone()

Returns

MountPoseConfigs

Deserialize(string)

Deserialize string and put values into this object

public StatusCode Deserialize(string to_deserialize)

Parameters

to_deserialize string

String 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

string

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

newMountPosePitch double

Parameter 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

newMountPoseRoll double

Parameter 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

newMountPoseYaw double

Parameter to modify

Returns

MountPoseConfigs

Itself