|
|
|
@ -12,7 +12,7 @@ AP_BattMonitor battery_mon;
@@ -12,7 +12,7 @@ AP_BattMonitor battery_mon;
|
|
|
|
|
uint32_t timer; |
|
|
|
|
|
|
|
|
|
void setup() { |
|
|
|
|
hal.console->println("Battery monitor library test"); |
|
|
|
|
hal.console->printf("Battery monitor library test\n"); |
|
|
|
|
|
|
|
|
|
// set battery monitor to smbus
|
|
|
|
|
battery_mon.set_monitoring(0, AP_BattMonitor::BattMonitor_TYPE_SMBUS); |
|
|
|
|