![]() |
Speeduino
|
#include <integerPID_ideal.h>
Public Member Functions | |
| integerPID_ideal (void) | |
| Default construction. | |
| void | initialize (uint16_t input) |
| Initialize the controller. | |
| bool | compute (uint32_t now, uint16_t input, uint16_t *pOutput) |
| Compute the new output. | |
Configuration methods | |
| void | setOutputLimits (uint8_t min, uint8_t max) |
| Set the output limits. | |
| void | setSampleTime (uint32_t now, uint16_t minComputeInterval) |
| Set the minimum time interval between computations. | |
| void | setTunings (const PidTuningParameters ¶ms) |
| Set the PID parameters. | |
| void | setSetPoint (uint16_t setpoint) |
| Set the controller set point. | |
| void | setSensitivity (uint16_t sensitivity) |
| (Optional) Set the sensitivity | |
| void | setFeedForwardTerm (uint16_t feedForwardTerm) |
| (Optional) Set the forward bias | |
| integerPID_ideal::integerPID_ideal | ( | void | ) |
Default construction.

Compute the new output.
| now | Current time (same units as used for setSampleTime) |
| input | The input value |
| pOutput | The new output: only valid when true is returned. |


Initialize the controller.
| input | The first input value (same as the compute() input parameter) |


(Optional) Set the forward bias


Set the output limits.


Set the minimum time interval between computations.
| now | Current time |
| minComputeInterval | Interval between valid calls to compute(). Must be in same units as now |


(Optional) Set the sensitivity


Set the controller set point.


|
inline |
Set the PID parameters.

