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 Summary
FieldsModifier and TypeFieldDescriptionfinal double
FeedForward coefficient A or acceleration in volts per unit of accelerationfinal double
FeedForward coefficient G or gravity in voltsfinal double
FeedForward coefficient S or static in voltsfinal double
FeedForward coefficient V or velocity in volts per unit of velocity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
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
-
FeedforwardConstants
- Parameters:
s
- FeedForward coefficient S or static in voltsg
- FeedForward coefficient G or gravity in voltsv
- FeedForward coefficient V or velocity in volts per unit of velocitya
- 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
-