Hotfix for IO battery voltage

This commit is contained in:
Lorenz Meier
2014-01-20 13:10:37 +01:00
parent dd9df7b1b0
commit 1e6d83fc9e
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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