From 55f84e9c05afe2f87e217fd1930c2d81360e8b26 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Tue, 1 Dec 2015 17:13:02 -0800 Subject: [PATCH] SITL: update ADSB for squawk --- libraries/SITL/SIM_ADSB.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/SITL/SIM_ADSB.cpp b/libraries/SITL/SIM_ADSB.cpp index c9dd754f5d..2695c138ad 100644 --- a/libraries/SITL/SIM_ADSB.cpp +++ b/libraries/SITL/SIM_ADSB.cpp @@ -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;