uncrustify libraries/AC_PID/AC_PID.h

This commit is contained in:
uncrustify 2012-08-16 22:37:26 -07:00 committed by Pat Hickey
parent 66ab46fa88
commit 7aea7dc825
1 changed files with 104 additions and 84 deletions

40
libraries/AC_PID/AC_PID.h Executable file → Normal file
View File

@ -79,18 +79,38 @@ public:
_kp = p; _ki = i; _kd = d; _imax = abs(imaxval);
}
float kP() const { return _kp.get(); }
float kI() const { return _ki.get(); }
float kD() const { return _kd.get(); }
int16_t imax() const { return _imax.get(); }
float kP() const {
return _kp.get();
}
float kI() const {
return _ki.get();
}
float kD() const {
return _kd.get();
}
int16_t imax() const {
return _imax.get();
}
void kP(const float v) { _kp.set(v); }
void kI(const float v) { _ki.set(v); }
void kD(const float v) { _kd.set(v); }
void imax(const int16_t v) { _imax.set(abs(v)); }
void kP(const float v) {
_kp.set(v);
}
void kI(const float v) {
_ki.set(v);
}
void kD(const float v) {
_kd.set(v);
}
void imax(const int16_t v) {
_imax.set(abs(v));
}
float get_integrator() const { return _integrator; }
void set_integrator(float i) { _integrator = i; }
float get_integrator() const {
return _integrator;
}
void set_integrator(float i) {
_integrator = i;
}
static const struct AP_Param::GroupInfo var_info[];