mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
radio_status: change 'fixed' field name to 'fix' so it does not clash with 'fixed' floating-point notation on the IDL generation
This commit is contained in:
parent
2767f47891
commit
3228e494bd
@ -10,4 +10,4 @@ uint8 noise # background noise level
|
||||
uint8 remote_noise # remote background noise level
|
||||
uint16 rxerrors # receive errors
|
||||
|
||||
uint16 fixed # count of error corrected packets
|
||||
uint16 fix # count of error corrected packets
|
||||
|
||||
@ -2807,7 +2807,7 @@ Mavlink::display_status()
|
||||
printf("\t noise:\t%d\n", _rstatus.noise);
|
||||
printf("\t remote noise:\t%u\n", _rstatus.remote_noise);
|
||||
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;
|
||||
|
||||
case telemetry_status_s::TELEMETRY_STATUS_RADIO_TYPE_USB:
|
||||
|
||||
@ -1504,7 +1504,7 @@ MavlinkReceiver::handle_message_radio_status(mavlink_message_t *msg)
|
||||
status.noise = rstatus.noise;
|
||||
status.remote_noise = rstatus.remnoise;
|
||||
status.rxerrors = rstatus.rxerrors;
|
||||
status.fixed = rstatus.fixed;
|
||||
status.fix = rstatus.fixed;
|
||||
|
||||
_mavlink->update_radio_status(status);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user