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/drivers/px4io/px4io.cpp | |
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/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index dede5976d..c8f77a611 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1302,6 +1302,7 @@ PX4IO::io_handle_battery(uint16_t vbatt, uint16_t ibatt) /* voltage is scaled to mV */ battery_status.voltage_v = vbatt / 1000.0f; + battery_status.voltage_filtered_v = vbatt / 1000.0f; /* ibatt contains the raw ADC count, as 12 bit ADC |