mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
MSP_OSD Update: Add original battery status msg. (#24872)
Co-authored-by: Michael <mfs3ee@gmail.com>
This commit is contained in:
parent
77894b7c83
commit
0f2012ba06
@ -341,6 +341,9 @@ void MspOsd::Run()
|
||||
battery_status_s battery_status{};
|
||||
_battery_status_sub.copy(&battery_status);
|
||||
|
||||
const auto msg_original = msp_osd::construct_BATTERY_STATE(battery_status);
|
||||
this->Send(MSP_BATTERY_STATE, &msg_original);
|
||||
|
||||
const auto msg = msp_osd::construct_rendor_BATTERY_STATE(battery_status);
|
||||
this->Send(MSP_CMD_DISPLAYPORT, &msg, sizeof(msp_rendor_battery_state_t));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user