|
|
|
@ -166,7 +166,7 @@ void Copter::read_battery(void)
@@ -166,7 +166,7 @@ void Copter::read_battery(void)
|
|
|
|
|
// update motors with voltage and current
|
|
|
|
|
if (battery.get_type() != AP_BattMonitor::BattMonitor_TYPE_NONE) { |
|
|
|
|
motors->set_voltage(battery.voltage()); |
|
|
|
|
AP_Notify::flags.battery_voltage = battery.voltage(); //for on-board oled display
|
|
|
|
|
AP_Notify::flags.battery_voltage = battery.voltage(); |
|
|
|
|
} |
|
|
|
|
if (battery.has_current()) { |
|
|
|
|
motors->set_current(battery.current_amps()); |
|
|
|
|