Class Pigeon2Configuration
- All Implemented Interfaces:
ParentConfiguration,ISerializable,Cloneable
Pigeon2.-
Field Summary
FieldsModifier and TypeFieldDescriptionCustom Params.booleanTrue if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.Configs to trim the Pigeon2's gyroscope.Configs for Pigeon 2's Mount Pose configuration.Configs to enable/disable various features of the Pigeon2. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final StatusCodedeserialize(String to_deserialize) Take a string and deserialize it to this configuration.final StringGet the serialized form of this configuration.toString()final Pigeon2ConfigurationwithCustomParams(CustomParamsConfigs newCustomParams) Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easier to use config API.final Pigeon2ConfigurationwithGyroTrim(GyroTrimConfigs newGyroTrim) Modifies this configuration's GyroTrim parameter and returns itself for method-chaining and easier to use config API.final Pigeon2ConfigurationwithMountPose(MountPoseConfigs newMountPose) Modifies this configuration's MountPose parameter and returns itself for method-chaining and easier to use config API.final Pigeon2ConfigurationwithPigeon2Features(Pigeon2FeaturesConfigs newPigeon2Features) Modifies this configuration's Pigeon2Features parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
FutureProofConfigs
True if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.This flag addresses a corner case where the device may have firmware with newer configs that didn't exist when this version of the API was built. If this occurs and this flag is true, unsupported new configs will be factory defaulted to avoid unexpected behavior.
This is also the behavior in Phoenix 5, so this flag is defaulted to true to match.
-
MountPose
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.
Parameter list:
-
GyroTrim
Configs to trim the Pigeon2's gyroscope.Pigeon2 allows the user to trim the gyroscope's sensitivity. While this isn't necessary for the Pigeon2, as it comes calibrated out-of-the-box, users can make use of this to make the Pigeon2 even more accurate for their application.
Parameter list:
-
Pigeon2Features
Configs to enable/disable various features of the Pigeon2.These configs allow the user to enable or disable various aspects of the Pigeon2.
Parameter list:
-
CustomParams
Custom Params.Custom paramaters that have no real impact on controller.
Parameter list:
-
-
Constructor Details
-
Pigeon2Configuration
public Pigeon2Configuration()
-
-
Method Details
-
withMountPose
Modifies this configuration's MountPose parameter and returns itself for method-chaining and easier to use config API.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.
Parameter list:
- Parameters:
newMountPose- Parameter to modify- Returns:
- Itself
-
withGyroTrim
Modifies this configuration's GyroTrim parameter and returns itself for method-chaining and easier to use config API.Configs to trim the Pigeon2's gyroscope.
Pigeon2 allows the user to trim the gyroscope's sensitivity. While this isn't necessary for the Pigeon2, as it comes calibrated out-of-the-box, users can make use of this to make the Pigeon2 even more accurate for their application.
Parameter list:
- Parameters:
newGyroTrim- Parameter to modify- Returns:
- Itself
-
withPigeon2Features
Modifies this configuration's Pigeon2Features parameter and returns itself for method-chaining and easier to use config API.Configs to enable/disable various features of the Pigeon2.
These configs allow the user to enable or disable various aspects of the Pigeon2.
Parameter list:
- Parameters:
newPigeon2Features- Parameter to modify- Returns:
- Itself
-
withCustomParams
Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easier to use config API.Custom Params.
Custom paramaters that have no real impact on controller.
Parameter list:
- Parameters:
newCustomParams- Parameter to modify- Returns:
- Itself
-
toString
-
serialize
Get the serialized form of this configuration.- Specified by:
serializein interfaceISerializable- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration.- Specified by:
deserializein interfaceParentConfiguration- Returns:
- Return code of the deserialize method
-
clone
-