mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 05:53:34 +08:00
battery: pass priority in by setter
This commit is contained in:
@@ -100,14 +100,12 @@ EscBattery::Run()
|
||||
average_voltage_v /= esc_status.esc_count;
|
||||
|
||||
const bool connected = true;
|
||||
const int priority = 0;
|
||||
|
||||
_battery.updateBatteryStatus(
|
||||
esc_status.timestamp,
|
||||
average_voltage_v,
|
||||
total_current_a,
|
||||
connected,
|
||||
priority);
|
||||
connected);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user