From 4441b7402009625df5b249adde9b451fc0db15e7 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 28 Apr 2016 13:06:02 +0200 Subject: [PATCH] sensors: Default battery to a 50% setting --- src/modules/sensors/sensors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index 5bcf253f53..b606da4863 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -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 */