General robustness improvements in PID struct, numerically close to bullet-proof, error reporting needs improvements still.

This commit is contained in:
Lorenz Meier
2012-09-23 01:20:41 +02:00
parent 8b951ec417
commit de530d6ba1
3 changed files with 48 additions and 23 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ typedef struct {
} PID_t;
__EXPORT void pid_init(PID_t *pid, float kp, float ki, float kd, float intmax, uint8_t mode);
__EXPORT void pid_set_parameters(PID_t *pid, float kp, float ki, float kd, float intmax);
__EXPORT int pid_set_parameters(PID_t *pid, float kp, float ki, float kd, float intmax);
//void pid_set(PID_t *pid, float sp);
__EXPORT float pid_calculate(PID_t *pid, float sp, float val, float val_dot, float dt);