#include <integerPID_ideal.h>
◆ integerPID_ideal()
| integerPID_ideal::integerPID_ideal |
( |
void |
| ) |
|
◆ compute()
| bool integerPID_ideal::compute |
( |
uint32_t |
now, |
|
|
uint16_t |
input, |
|
|
uint16_t * |
pOutput |
|
) |
| |
Compute the new output.
- Note
- The output is not a correction to be applied to the input. It is the actual output to be applied to the physical system.
- Parameters
-
| now | Current time (same units as used for setSampleTime) |
| input | The input value |
| pOutput | The new output: only valid when true is returned. |
- Returns
- true if a calculation occurred, false otherwise
◆ initialize()
| void integerPID_ideal::initialize |
( |
uint16_t |
input | ) |
|
Initialize the controller.
- Parameters
-
| input | The first input value (same as the compute() input parameter) |
◆ setFeedForwardTerm()
| void integerPID_ideal::setFeedForwardTerm |
( |
uint16_t |
feedForwardTerm | ) |
|
|
inline |
(Optional) Set the forward bias
◆ setOutputLimits()
| void integerPID_ideal::setOutputLimits |
( |
uint8_t |
min, |
|
|
uint8_t |
max |
|
) |
| |
◆ setSampleTime()
| void integerPID_ideal::setSampleTime |
( |
uint32_t |
now, |
|
|
uint16_t |
minComputeInterval |
|
) |
| |
|
inline |
Set the minimum time interval between computations.
- Parameters
-
| now | Current time |
| minComputeInterval | Interval between valid calls to compute(). Must be in same units as now |
◆ setSensitivity()
| void integerPID_ideal::setSensitivity |
( |
uint16_t |
sensitivity | ) |
|
|
inline |
(Optional) Set the sensitivity
◆ setSetPoint()
| void integerPID_ideal::setSetPoint |
( |
uint16_t |
setpoint | ) |
|
|
inline |
Set the controller set point.
◆ setTunings()
The documentation for this class was generated from the following files: