#include <opid.h>
Public Member Functions | |
| oPID (void) | |
| oPID (float cv) | |
| float | value (float target_value) |
| int | value (int target_value) |
| void | PID (float P, float I, float D) |
| sets the Proportional/Derivative multiplication factors. | |
| void | center (float target_center) |
| adjusts PID around a fixed center value. | |
Private Member Functions | |
| FIXED_POINT | _value (FIXED_POINT target_value) |
Private Attributes | |
| FIXED_POINT | _lastvalue |
| FIXED_POINT | _target_center |
| FIXED_POINT | _proportional |
| FIXED_POINT | _integral |
| FIXED_POINT | _derivative |
Current implementation only uses proportional and derivative.
#include <opid.h> int main() { TBD }
|
|
|
|
|
|
|
|
|
|
|
adjusts PID around a fixed center value.
|
|
||||||||||||||||
|
sets the Proportional/Derivative multiplication factors.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3