mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 04:43:34 +08:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user