Browse Source

AP_NavEKF2: Console output can be disabled

apm_2208
murata 3 years ago committed by Andrew Tridgell
parent
commit
c143fb0a5a
  1. 2
      libraries/AP_NavEKF2/AP_NavEKF2_core.cpp

2
libraries/AP_NavEKF2/AP_NavEKF2_core.cpp

@ -598,7 +598,7 @@ void NavEKF2_core::UpdateFilter(bool predict) @@ -598,7 +598,7 @@ void NavEKF2_core::UpdateFilter(bool predict)
static uint32_t timing_counter;
total_us += dal.micros() - timing_start_us;
if (timing_counter++ == 4000) {
hal.console->printf("ekf2 avg %.2f us\n", total_us / float(timing_counter));
DEV_PRINTF("ekf2 avg %.2f us\n", total_us / float(timing_counter));
total_us = 0;
timing_counter = 0;
}

Loading…
Cancel
Save