#include <integerPID.h>
|
| | integerPID (void) |
| | Default construction.
|
| |
| void | activate (int32_t input) |
| | Activates the controller. Must be called before compute() will have any effect.
|
| |
| bool | compute (uint32_t nowMs, int32_t input, int32_t *pOutput) |
| | Compute the new output.
|
| |
| void | reset (int32_t input) |
| | (Optional) Reset the controller
|
| |
| void | resetIntegeral (void) |
| | (Optional) Reset the integral term
|
| |
|
| void | setOutputLimits (int32_t min, int32_t max) |
| | Set the output limits.
|
| |
| void | setSetPoint (int32_t setpoint) |
| | Set the controller set point.
|
| |
| void | setTunings (const PidTuningParameters &pidParams, uint32_t nowMs, uint16_t minComputeInterval) |
| | Set the PID tuning parameters.
|
| |
| void | setFeedForwardTerm (int32_t feedForwardTerm) |
| | (Optional) Set the feed forward term (predictive bias)
|
| |
◆ integerPID()
| integerPID::integerPID |
( |
void |
| ) |
|
◆ activate()
| void integerPID::activate |
( |
int32_t |
input | ) |
|
Activates the controller. Must be called before compute() will have any effect.
◆ compute()
| bool integerPID::compute |
( |
uint32_t |
nowMs, |
|
|
int32_t |
input, |
|
|
int32_t * |
pOutput |
|
) |
| |
Compute the new output.
- Parameters
-
| nowMs | Current time in milliseconds |
| input | The input value |
| pOutput | A correction to be applied to the input; only valid when true is returned. |
- Returns
- true if a calculation occurred, false otherwise
◆ reset()
| void integerPID::reset |
( |
int32_t |
input | ) |
|
(Optional) Reset the controller
◆ resetIntegeral()
| void integerPID::resetIntegeral |
( |
void |
| ) |
|
(Optional) Reset the integral term
◆ setFeedForwardTerm()
| void integerPID::setFeedForwardTerm |
( |
int32_t |
feedForwardTerm | ) |
|
(Optional) Set the feed forward term (predictive bias)
◆ setOutputLimits()
| void integerPID::setOutputLimits |
( |
int32_t |
min, |
|
|
int32_t |
max |
|
) |
| |
◆ setSetPoint()
| void integerPID::setSetPoint |
( |
int32_t |
setpoint | ) |
|
|
inline |
Set the controller set point.
◆ setTunings()
| void integerPID::setTunings |
( |
const PidTuningParameters & |
pidParams, |
|
|
uint32_t |
nowMs, |
|
|
uint16_t |
minComputeInterval |
|
) |
| |
Set the PID tuning parameters.
- Parameters
-
| pidParams | P, I & D terms |
| nowMs | Current time in milliseconds |
| minComputeInterval | Minimum time that should elapse between computations (in milliseconds) |
The documentation for this class was generated from the following files: