SITL: update ADSB for squawk

This commit is contained in:
Tom Pittenger 2015-12-01 17:13:02 -08:00
parent c0c3500d06
commit 55f84e9c05

View File

@ -187,6 +187,7 @@ void ADSB::send_report(void)
ADSB_FLAGS_VALID_VELOCITY |
ADSB_FLAGS_VALID_CALLSIGN |
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);
uint8_t saved_seq = chan0_status->current_tx_seq;