Plane: Supply compass with current measurement for compassmot

This commit is contained in:
Jonathan Challinger 2014-04-14 15:28:32 -07:00 committed by Andrew Tridgell
parent 0bb7b8e938
commit 0bc0abf02d
1 changed files with 1 additions and 0 deletions

View File

@ -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();