mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 13:13:34 +08:00
precland: add a method to check if precland is activated
This commit is contained in:
committed by
Julian Oes
parent
ad4d4287fa
commit
ed9e504695
@@ -101,6 +101,8 @@ PrecLand::on_activation()
|
||||
_last_slewrate_time = 0;
|
||||
|
||||
switch_to_state_start();
|
||||
|
||||
_is_activated = true;
|
||||
}
|
||||
|
||||
void
|
||||
@@ -158,6 +160,12 @@ PrecLand::on_active()
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
PrecLand::on_inactivation()
|
||||
{
|
||||
_is_activated = false;
|
||||
}
|
||||
|
||||
void
|
||||
PrecLand::updateParams()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user