AP_TECS: added function to reset integrator

This commit is contained in:
akolobov 2017-02-14 07:51:19 +11:00 committed by Andrew Tridgell
parent acddf6bdf3
commit a3f3097941
1 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,11 @@ public:
return _maxClimbRate;
}
// added to let SoaringContoller reset pitch integrator to zero
void reset_pitch_I(void) {
_integSEB_state = 0.0f;
}
// return landing sink rate
float get_land_sinkrate(void) const {
return _land_sink;