mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-15 02:40:34 +08:00
commander: try to fix arm authorization spamming
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -50,12 +50,14 @@ HealthAndArmingChecks::HealthAndArmingChecks(ModuleParams *parent, vehicle_statu
|
||||
_failsafe_flags.home_position_invalid = true;
|
||||
}
|
||||
|
||||
bool HealthAndArmingChecks::update(bool force_reporting)
|
||||
bool HealthAndArmingChecks::update(bool force_reporting, bool is_arming_request)
|
||||
{
|
||||
_reporter.reset();
|
||||
|
||||
_reporter.prepare(_context.status().vehicle_type);
|
||||
|
||||
_context.setIsArmingRequest(is_arming_request);
|
||||
|
||||
for (unsigned i = 0; i < sizeof(_checks) / sizeof(_checks[0]); ++i) {
|
||||
if (!_checks[i]) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user