mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
vtol_type: reset quadchute filter states if TECS is not running
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
committed by
Silvan Fuhrer
parent
faeaa411d0
commit
01535a726a
@@ -222,6 +222,12 @@ bool VtolType::can_transition_on_ground()
|
||||
void VtolType::check_quadchute_condition()
|
||||
{
|
||||
|
||||
if (!_tecs_running) {
|
||||
// reset the filtered height rate and heigh rate setpoint if TECS is not running
|
||||
_ra_hrate = 0.0f;
|
||||
_ra_hrate_sp = 0.0f;
|
||||
}
|
||||
|
||||
if (_v_control_mode->flag_armed && !_land_detected->landed) {
|
||||
Eulerf euler = Quatf(_v_att->q);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user