VTOL force land even when transitioning to FW (#8958)

This commit is contained in:
Sander Smeets
2018-03-01 22:51:50 +01:00
committed by Daniel Agar
parent ff86d15c13
commit 2ef9c4ec35
3 changed files with 10 additions and 2 deletions

View File

@@ -1099,6 +1099,14 @@ Navigator::abort_landing()
return should_abort;
}
bool
Navigator::force_vtol()
{
return _vstatus.is_vtol &&
(!_vstatus.is_rotary_wing || _vstatus.in_transition_to_fw)
&& _param_force_vtol.get();
}
static void usage()
{
PX4_INFO("usage: navigator {start|stop|status|fencefile}");