Browse Source

AP_ToshibaCAN: correct spelling mili -> milli

gps-1.3.1
murata 3 years ago committed by Randy Mackay
parent
commit
71d87c3c94
  1. 2
      libraries/AP_ToshibaCAN/AP_ToshibaCAN.cpp

2
libraries/AP_ToshibaCAN/AP_ToshibaCAN.cpp

@ -317,7 +317,7 @@ void AP_ToshibaCAN::loop() @@ -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;

Loading…
Cancel
Save