Skip to content

Commit

Permalink
Send flags as remnoise, because txbuf value is used by PX4 to throttl…
Browse files Browse the repository at this point in the history
…e bandwidth
  • Loading branch information
svpcom committed Dec 17, 2018
1 parent f1eccd3 commit 7418bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osdmavlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7418bc1

Please sign in to comment.