From 7418bc1c9c4b5ec32009b3996b0013bf697b2a16 Mon Sep 17 00:00:00 2001 From: Vasily Evseenko Date: Mon, 17 Dec 2018 10:09:13 +0300 Subject: [PATCH] Send flags as remnoise, because txbuf value is used by PX4 to throttle bandwidth --- osdmavlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osdmavlink.c b/osdmavlink.c index 352e9be..da05f82 100644 --- a/osdmavlink.c +++ b/osdmavlink.c @@ -208,14 +208,14 @@ void parse_mavlink_packet(uint8_t *buf, int buflen) case MAVLINK_MSG_ID_RADIO_STATUS: { - if ((msg.sysid != 1) || (msg.compid != 242)) { + if ((msg.sysid != 3) || (msg.compid != 242)) { break; } wfb_rssi = (int8_t)mavlink_msg_radio_status_get_rssi(&msg); wfb_errors = mavlink_msg_radio_status_get_rxerrors(&msg); wfb_fec_fixed = mavlink_msg_radio_status_get_fixed(&msg); - wfb_flags = mavlink_msg_radio_status_get_txbuf(&msg); + wfb_flags = mavlink_msg_radio_status_get_remnoise(&msg); } break;