diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-03-17 14:35:07 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-03-17 14:35:07 +0100 |
commit | 75ad1c4a1350d73315f48a1f4b9bdbee2d20fa9e (patch) | |
tree | e39d8988afb37756044e666fc5f7d2079343176a /src | |
parent | 9cdb416d3a6ceb1c74b03f3f046f5d904bf7fc45 (diff) | |
download | px4-firmware-75ad1c4a1350d73315f48a1f4b9bdbee2d20fa9e.tar.gz px4-firmware-75ad1c4a1350d73315f48a1f4b9bdbee2d20fa9e.tar.bz2 px4-firmware-75ad1c4a1350d73315f48a1f4b9bdbee2d20fa9e.zip |
Completely and properly populate battery status message in HIL
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 71ea832fd..489d2bdcb 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -851,7 +851,9 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg) hil_battery_status.timestamp = timestamp; hil_battery_status.voltage_v = 11.1f; + hil_battery_status.voltage_filtered_v = 11.1f; hil_battery_status.current_a = 10.0f; + hil_battery_status.discharged_mah = -1.0f; if (_battery_pub > 0) { orb_publish(ORB_ID(battery_status), _battery_pub, &hil_battery_status); |