replace reset counter logic for estimator reset for manual controlled mode

This commit is contained in:
Dennis Mannhart
2018-07-20 09:26:18 +02:00
committed by Lorenz Meier
parent 70802ba15a
commit 9ec47f2b74
4 changed files with 23 additions and 2 deletions
@@ -65,6 +65,8 @@ protected:
(ParamInt<px4::params::MPC_ALT_MODE>) MPC_ALT_MODE
)
private:
uint8_t _reset_counter = 0; /**< counter for estimator resets in z-direction */
/**
* Distance to ground during terrain following.
* If user does not demand velocity change in D-direction and the vehcile