AP_BLHeli: make ESC debug easier to see

This commit is contained in:
Andy Piper 2022-07-24 21:36:43 +01:00 committed by Andrew Tridgell
parent 3f103f2fe3
commit 9753f36dd1
1 changed files with 4 additions and 2 deletions

View File

@ -1494,8 +1494,10 @@ void AP_BLHeli::log_bidir_telemetry(void)
trpm = trpm * 200 / motor_poles;
}
last_log_ms[last_telem_esc] = now;
DEV_PRINTF("ESC[%u] RPM=%u e=%.1f t=%u\n", last_telem_esc, trpm, hal.rcout->get_erpm_error_rate(motor_idx), (unsigned)AP_HAL::millis());
if (trpm > 0) {
last_log_ms[last_telem_esc] = now;
DEV_PRINTF("ESC[%u] RPM=%u e=%.1f t=%u\n", last_telem_esc, trpm, hal.rcout->get_erpm_error_rate(motor_idx), (unsigned)AP_HAL::millis());
}
}
}