mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
SITL: update ADSB for squawk
This commit is contained in:
parent
c0c3500d06
commit
55f84e9c05
@ -187,6 +187,7 @@ void ADSB::send_report(void)
|
|||||||
ADSB_FLAGS_VALID_VELOCITY |
|
ADSB_FLAGS_VALID_VELOCITY |
|
||||||
ADSB_FLAGS_VALID_CALLSIGN |
|
ADSB_FLAGS_VALID_CALLSIGN |
|
||||||
ADSB_FLAGS_SIMULATED;
|
ADSB_FLAGS_SIMULATED;
|
||||||
|
adsb_vehicle.squawk = 0; // NOTE: ADSB_FLAGS_VALID_SQUAWK is not set
|
||||||
|
|
||||||
mavlink_status_t *chan0_status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
mavlink_status_t *chan0_status = mavlink_get_channel_status(MAVLINK_COMM_0);
|
||||||
uint8_t saved_seq = chan0_status->current_tx_seq;
|
uint8_t saved_seq = chan0_status->current_tx_seq;
|
||||||
|
Loading…
Reference in New Issue
Block a user