forked from Archive/PX4-Autopilot
Completely and properly populate battery status message in HIL
This commit is contained in:
parent
9cdb416d3a
commit
75ad1c4a13
|
@ -851,7 +851,9 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg)
|
||||||
|
|
||||||
hil_battery_status.timestamp = timestamp;
|
hil_battery_status.timestamp = timestamp;
|
||||||
hil_battery_status.voltage_v = 11.1f;
|
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.current_a = 10.0f;
|
||||||
|
hil_battery_status.discharged_mah = -1.0f;
|
||||||
|
|
||||||
if (_battery_pub > 0) {
|
if (_battery_pub > 0) {
|
||||||
orb_publish(ORB_ID(battery_status), _battery_pub, &hil_battery_status);
|
orb_publish(ORB_ID(battery_status), _battery_pub, &hil_battery_status);
|
||||||
|
|
Loading…
Reference in New Issue