AP_ToshibaCAN: correct spelling mili -> milli

This commit is contained in:
murata 2022-01-30 09:21:01 +09:00 committed by Randy Mackay
parent 42264599f2
commit 71d87c3c94
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ void AP_ToshibaCAN::loop()
t.voltage = float(be16toh(reply_data.voltage_mv)) * 0.001f; // millivolts to volts
t.current = MAX((int16_t)be16toh(reply_data.current_ma), 0) * (4.0f * 0.001f); // milli-amps to amps
if (diff_ms <= 1000) {
// convert centi-amps miliseconds to mAh
// convert centi-amps milliseconds to mAh
_telemetry[esc_id].current_tot_mah += t.current * diff_ms * amp_ms_to_mah;
}
t.consumption_mah = _telemetry[esc_id].current_tot_mah;