Skip to content

Commit

Permalink
GCS_MAVLink: Add battery_charge_state to Battery_Status message
Browse files Browse the repository at this point in the history
  • Loading branch information
hendjoshsr71 authored and tridge committed Jun 7, 2021
1 parent 8b83b49 commit 518666b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/GCS_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void GCS_MAVLINK::send_battery_status(const uint8_t instance) const
consumed_wh, // consumed energy in hJ (hecto-Joules)
battery.capacity_remaining_pct(instance),
0, // time remaining, seconds (not provided)
MAV_BATTERY_CHARGE_STATE_UNDEFINED,
battery.get_mavlink_charge_state(instance), // battery charge state
cell_volts_ext); // Cell 11..14 voltages
}

Expand Down

0 comments on commit 518666b

Please sign in to comment.