This class contains feedback and feedforward constants for an ExpansionHub motor.
More...
#include <wpi/hardware/expansionhub/ExpansionHubPositionConstants.hpp>
This class contains feedback and feedforward constants for an ExpansionHub motor.
◆ ExpansionHubPositionConstants() [1/2]
| wpi::ExpansionHubPositionConstants::ExpansionHubPositionConstants |
( |
ExpansionHubPositionConstants & | | ) |
|
|
delete |
◆ ExpansionHubPositionConstants() [2/2]
| wpi::ExpansionHubPositionConstants::ExpansionHubPositionConstants |
( |
ExpansionHubPositionConstants && | | ) |
|
|
default |
◆ DisableContinuousInput()
Disable continuous input mode.
- Returns
- This object, for method chaining.
◆ EnableContinuousInput()
Enables continuous input.
Rather then using the max and min input range as constraints, it considers them to be the same point and automatically calculates the shortest route to the setpoint.
- Parameters
-
| minimumInput | The minimum value expected from the input. |
| maximumInput | The maximum value expected from the input. |
- Returns
- This object, for method chaining.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetPID()
Sets the PID Controller gain parameters.
Set the proportional, integral, and differential coefficients.
- Parameters
-
| p | The proportional coefficient. |
| i | The integral coefficient. |
| d | The derivative coefficient. |
- Returns
- This object, for method chaining.
◆ SetS()
Sets the feed forward gains to the specified values.
The units should be radians for angular systems and meters for linear systems.
The motor control period is 10ms
- Parameters
-
| s | The static gain in volts. |
- Returns
- This object, for method chaining.
◆ ExpansionHubMotor
| friend class ExpansionHubMotor |
|
friend |
The documentation for this class was generated from the following file: