Browse Source

Copter: minor comment fixes to ekf failsafe

the bad variances can be from the compass, velocity or position estimate
apm_2208
Randy Mackay 3 years ago
parent
commit
dd0d1d6b3c
  1. 4
      ArduCopter/ekf_check.cpp

4
ArduCopter/ekf_check.cpp

@ -61,7 +61,7 @@ void Copter::ekf_check() @@ -61,7 +61,7 @@ void Copter::ekf_check()
// increment or decrement counters and take action
if (!checks_passed) {
// if compass is not yet flagged as bad
// if variances are not yet flagged as bad
if (!ekf_check_state.bad_variance) {
// increase counter
ekf_check_state.fail_count++;
@ -94,7 +94,7 @@ void Copter::ekf_check() @@ -94,7 +94,7 @@ void Copter::ekf_check()
if (ekf_check_state.fail_count > 0) {
ekf_check_state.fail_count--;
// if compass is flagged as bad and the counter reaches zero then clear flag
// if variances are flagged as bad and the counter reaches zero then clear flag
if (ekf_check_state.bad_variance && ekf_check_state.fail_count == 0) {
ekf_check_state.bad_variance = false;
AP::logger().Write_Error(LogErrorSubsystem::EKFCHECK, LogErrorCode::EKFCHECK_VARIANCE_CLEARED);

Loading…
Cancel
Save