Package com.ctre.phoenixpro.configs
Class GyroTrimConfigs
java.lang.Object
com.ctre.phoenixpro.configs.GyroTrimConfigs
- All Implemented Interfaces:
ParentConfiguration,ISerializable
public class GyroTrimConfigs extends Object implements ParentConfiguration
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.
-
Field Summary
Fields Modifier and Type Field Description doubleGyroScalarXThe gyro scalar component for the X axis Minimum Value: -180 Maximum Value: 180 Default Value: 0 Units: deg per rotationdoubleGyroScalarYThe gyro scalar component for the Y axis Minimum Value: -180 Maximum Value: 180 Default Value: 0 Units: deg per rotationdoubleGyroScalarZThe gyro scalar component for the Z axis Minimum Value: -180 Maximum Value: 180 Default Value: 0 Units: deg per rotation -
Constructor Summary
Constructors Constructor Description GyroTrimConfigs() -
Method Summary
Modifier and Type Method Description StatusCodedeserialize(String string)Stringserialize()StringtoString()
-
Field Details
-
GyroScalarX
The gyro scalar component for the X axis- Minimum Value: -180
- Maximum Value: 180
- Default Value: 0
- Units: deg per rotation
-
GyroScalarY
The gyro scalar component for the Y axis- Minimum Value: -180
- Maximum Value: 180
- Default Value: 0
- Units: deg per rotation
-
GyroScalarZ
The gyro scalar component for the Z axis- Minimum Value: -180
- Maximum Value: 180
- Default Value: 0
- Units: deg per rotation
-
-
Constructor Details
-
GyroTrimConfigs
public GyroTrimConfigs()
-
-
Method Details
-
toString
-
deserialize
- Specified by:
deserializein interfaceParentConfiguration
-
serialize
- Specified by:
serializein interfaceISerializable
-