This class contains PID constants for an ExpansionHub motor.
More...
#include <wpi/hardware/expansionhub/ExpansionHubPidConstants.hpp>
This class contains PID constants for an ExpansionHub motor.
◆ ExpansionHubPidConstants() [1/2]
| wpi::ExpansionHubPidConstants::ExpansionHubPidConstants |
( |
ExpansionHubPidConstants & | | ) |
|
|
delete |
◆ ExpansionHubPidConstants() [2/2]
| wpi::ExpansionHubPidConstants::ExpansionHubPidConstants |
( |
ExpansionHubPidConstants && | | ) |
|
|
default |
◆ DisableContinousInput()
| void wpi::ExpansionHubPidConstants::DisableContinousInput |
( |
| ) |
|
Disables continuous input.
◆ EnableContinousInput()
| void wpi::ExpansionHubPidConstants::EnableContinousInput |
( |
double | minimumInput, |
|
|
double | maximumInput ) |
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. |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetFF()
| void wpi::ExpansionHubPidConstants::SetFF |
( |
double | s, |
|
|
double | v, |
|
|
double | a ) |
Sets the feed forward gains to the specified values.
The units should be radians for angular systems and meters for linear systems.
The PID control period is 10ms
- Parameters
-
| s | The static gain in volts. |
| v | The velocity gain in V/(units/s). |
| a | The acceleration gain in V/(units/s²). |
◆ SetPID()
| void wpi::ExpansionHubPidConstants::SetPID |
( |
double | p, |
|
|
double | i, |
|
|
double | d ) |
Sets the PID Controller gain parameters.
Sets the proportional, integral, and differential coefficients.
- Parameters
-
| p | The proportional coefficient. Must be >= 0. |
| i | The integral coefficient. Must be >= 0. |
| d | The differential coefficient. Must be >= 0. |
◆ ExpansionHubMotor
| friend class ExpansionHubMotor |
|
friend |
The documentation for this class was generated from the following file: