Package tagalong.controls
Class FeedforwardConstants
java.lang.Object
tagalong.controls.FeedforwardConstants
Wrapper class for FeedForward coefficients for generic reuse or conversion
 between multiple 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 velocity
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription
- 
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- 
FeedforwardConstants- Parameters:
- 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
 
 
- 
- 
Method Details- 
getElevatorFeedforward- Returns:
- Constants converted to an ElevatorFeedforward
 
- 
getArmFeedforward- Returns:
- Constants converted to an ArmFeedforward
 
- 
getSimpleMotorFeedforward- Returns:
- Constants converted to a SimpleMotorFeedforward
 
 
-