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 SummaryFieldsModifier 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.PIDConstantsd, i, p
- 
Constructor SummaryConstructorsConstructorDescriptionPIDSGVAConstants(double p, double i, double d, double s, double g, double v, double a) 
- 
Method SummaryModifier and TypeMethodDescriptioncom.ctre.phoenix6.configs.Slot0Configscom.ctre.phoenix6.configs.Slot1Configscom.ctre.phoenix6.configs.Slot2ConfigsMethods inherited from class tagalong.controls.PIDConstantsgetProfiledController, getUnprofiledController
- 
Field Details- 
sFeedForward coefficient S or static in volts
- 
gFeedForward coefficient G or gravity in volts
- 
vFeedForward coefficient V or velocity in volts per unit of velocity
- 
aFeedForward coefficient A or acceleration in volts per unit of acceleration
 
- 
- 
Constructor Details- 
PIDSGVAConstants- Parameters:
- p- P Factor
- i- I Factor
- d- D Factor
- s- S Factor
- g- G Factor
- v- V Factor
- a- 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
 
 
-