vtol_att_control: move handling of motor state and idle speed selection

to VtolType class

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2018-04-12 09:19:47 +02:00
committed by Roman Bapst
parent 744f806214
commit 79ff1436b8
4 changed files with 16 additions and 39 deletions
@@ -257,20 +257,11 @@ void Tailsitter::waiting_on_tecs()
void Tailsitter::update_mc_state()
{
VtolType::update_mc_state();
// set idle speed for rotary wing mode
if (!flag_idle_mc) {
flag_idle_mc = set_idle_mc();
}
}
void Tailsitter::update_fw_state()
{
VtolType::update_fw_state();
if (flag_idle_mc) {
flag_idle_mc = !set_idle_fw();
}
}
/**