mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
mavlink_receiver: ignore BATTERY_STATUS of other system
This commit is contained in:
committed by
Kabir Mohammed
parent
ed3b924f97
commit
319723a1ec
@@ -1509,6 +1509,11 @@ MavlinkReceiver::handle_message_ping(mavlink_message_t *msg)
|
||||
void
|
||||
MavlinkReceiver::handle_message_battery_status(mavlink_message_t *msg)
|
||||
{
|
||||
if (msg->sysid != mavlink_system.sysid) {
|
||||
// ignore battery status of other system
|
||||
return;
|
||||
}
|
||||
|
||||
// external battery measurements
|
||||
mavlink_battery_status_t battery_mavlink;
|
||||
mavlink_msg_battery_status_decode(msg, &battery_mavlink);
|
||||
|
||||
Reference in New Issue
Block a user