Package tagalong.controls
Class PIDSGVAConstants
java.lang.Object
tagalong.controls.PIDConstants
tagalong.controls.PIDSGVAConstants
Wrapper class for PID + FeedForward coefficients for generic reuse in CTRE
Devices
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleFeedForward coefficient A or acceleration in volts per unit of accelerationfinal doubleFeedForward coefficient G or gravity in voltsfinal doubleFeedForward coefficient S or static in voltsfinal doubleFeedForward coefficient V or velocity in volts per unit of velocityFields inherited from class tagalong.controls.PIDConstants
d, i, p -
Constructor Summary
ConstructorsConstructorDescriptionPIDSGVAConstants(double p, double i, double d, double s, double g, double v, double a) -
Method Summary
Modifier and TypeMethodDescriptioncom.ctre.phoenix6.configs.Slot0Configscom.ctre.phoenix6.configs.Slot1Configscom.ctre.phoenix6.configs.Slot2ConfigsMethods inherited from class tagalong.controls.PIDConstants
getProfiledController, getUnprofiledController
-
Field Details
-
s
FeedForward coefficient S or static in volts -
g
FeedForward coefficient G or gravity in volts -
v
FeedForward coefficient V or velocity in volts per unit of velocity -
a
FeedForward coefficient A or acceleration in volts per unit of acceleration
-
-
Constructor Details
-
PIDSGVAConstants
- Parameters:
p- P Factori- I Factord- D Factors- S Factorg- G Factorv- V Factora- A Factor
-
-
Method Details
-
toCTRESlot0Configuration
- Returns:
- Values as CTRE Device Slot 0 configuration
-
toCTRESlot1Configuration
- Returns:
- Values as CTRE Device Slot 1 configuration
-
toCTRESlot2Configuration
- Returns:
- Values as CTRE Device Slot 2 configuration
-