diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-20 13:10:37 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-20 13:10:37 +0100 |
commit | 1e6d83fc9ea1c33b6a76623cc86a7889dc4f6c49 (patch) | |
tree | 2aa14b0f1f4259be37435037b2436e44479415ed /src/modules | |
parent | dd9df7b1b0974a9838d3e21842a0d90f3eff54d9 (diff) | |
download | px4-firmware-1e6d83fc9ea1c33b6a76623cc86a7889dc4f6c49.tar.gz px4-firmware-1e6d83fc9ea1c33b6a76623cc86a7889dc4f6c49.tar.bz2 px4-firmware-1e6d83fc9ea1c33b6a76623cc86a7889dc4f6c49.zip |
Hotfix for IO battery voltage
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/sensors/sensors.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index ff6c5882e..9903a90a0 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -1548,8 +1548,8 @@ Sensors::task_main() raw.adc_voltage_v[3] = 0.0f; memset(&_battery_status, 0, sizeof(_battery_status)); - _battery_status.voltage_v = 0.0f; - _battery_status.voltage_filtered_v = 0.0f; + _battery_status.voltage_v = -1.0f; + _battery_status.voltage_filtered_v = -1.0f; _battery_status.current_a = -1.0f; _battery_status.discharged_mah = -1.0f; |