mirror of https://github.com/ArduPilot/ardupilot
Plane: Supply compass with current measurement for compassmot
This commit is contained in:
parent
0bb7b8e938
commit
0bc0abf02d
|
@ -54,6 +54,7 @@ static void zero_airspeed(void)
|
|||
static void read_battery(void)
|
||||
{
|
||||
battery.read();
|
||||
compass.set_current(battery.current_amps());
|
||||
|
||||
if (!usb_connected && battery.exhausted(g.fs_batt_voltage, g.fs_batt_mah)) {
|
||||
low_battery_event();
|
||||
|
|
Loading…
Reference in New Issue