From 71d87c3c940921db822bf7b299262858498ca9ec Mon Sep 17 00:00:00 2001 From: murata Date: Sun, 30 Jan 2022 09:21:01 +0900 Subject: [PATCH] AP_ToshibaCAN: correct spelling mili -> milli --- libraries/AP_ToshibaCAN/AP_ToshibaCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_ToshibaCAN/AP_ToshibaCAN.cpp b/libraries/AP_ToshibaCAN/AP_ToshibaCAN.cpp index 3b778b6b23..c31111c1bc 100644 --- a/libraries/AP_ToshibaCAN/AP_ToshibaCAN.cpp +++ b/libraries/AP_ToshibaCAN/AP_ToshibaCAN.cpp @@ -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;