Browse Source

radio_status: change 'fixed' field name to 'fix' so it does not clash with 'fixed' floating-point notation on the IDL generation

sbg
TSC21 6 years ago committed by Beat Küng
parent
commit
3228e494bd
  1. 2
      msg/radio_status.msg
  2. 2
      src/modules/mavlink/mavlink_main.cpp
  3. 2
      src/modules/mavlink/mavlink_receiver.cpp

2
msg/radio_status.msg

@ -10,4 +10,4 @@ uint8 noise # background noise level
uint8 remote_noise # remote background noise level uint8 remote_noise # remote background noise level
uint16 rxerrors # receive errors uint16 rxerrors # receive errors
uint16 fixed # count of error corrected packets uint16 fix # count of error corrected packets

2
src/modules/mavlink/mavlink_main.cpp

@ -2807,7 +2807,7 @@ Mavlink::display_status()
printf("\t noise:\t%d\n", _rstatus.noise); printf("\t noise:\t%d\n", _rstatus.noise);
printf("\t remote noise:\t%u\n", _rstatus.remote_noise); printf("\t remote noise:\t%u\n", _rstatus.remote_noise);
printf("\t rx errors:\t%u\n", _rstatus.rxerrors); printf("\t rx errors:\t%u\n", _rstatus.rxerrors);
printf("\t fixed:\t%u\n", _rstatus.fixed); printf("\t fixed:\t%u\n", _rstatus.fix);
break; break;
case telemetry_status_s::TELEMETRY_STATUS_RADIO_TYPE_USB: case telemetry_status_s::TELEMETRY_STATUS_RADIO_TYPE_USB:

2
src/modules/mavlink/mavlink_receiver.cpp

@ -1504,7 +1504,7 @@ MavlinkReceiver::handle_message_radio_status(mavlink_message_t *msg)
status.noise = rstatus.noise; status.noise = rstatus.noise;
status.remote_noise = rstatus.remnoise; status.remote_noise = rstatus.remnoise;
status.rxerrors = rstatus.rxerrors; status.rxerrors = rstatus.rxerrors;
status.fixed = rstatus.fixed; status.fix = rstatus.fixed;
_mavlink->update_radio_status(status); _mavlink->update_radio_status(status);

Loading…
Cancel
Save