precland: add a method to check if precland is activated

This commit is contained in:
Dusan Zivkovic
2020-05-29 09:11:01 +02:00
committed by Julian Oes
parent ad4d4287fa
commit ed9e504695
2 changed files with 13 additions and 0 deletions
+8
View File
@@ -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()
{