mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
sensors: Default battery to a 50% setting
This commit is contained in:
parent
a676af3d42
commit
4441b74020
@ -1703,7 +1703,7 @@ Sensors::adc_poll(struct sensor_combined_s &raw)
|
||||
if (updated_battery) {
|
||||
// XXX TODO: throttle is hardcoded here. The dependency to throttle would need to be
|
||||
// removed, or it needs to be subscribed to actuator controls.
|
||||
const float throttle = 0.0f;
|
||||
const float throttle = 0.5f;
|
||||
_battery.updateBatteryStatus(t, bat_voltage_v, bat_current_a, throttle, &_battery_status);
|
||||
|
||||
/* announce the battery status if needed, just publish else */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user