From 7d23d3763098e6272a98bc485e31d5fa644b21e2 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 16 Mar 2022 10:24:27 +1100 Subject: [PATCH] Tracker: fix sim_vehicle.py with --tracker option --- AntennaTracker/system.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index e888eef494..b1b4223cc1 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -27,6 +27,10 @@ void Tracker::init_ardupilot() // setup telem slots with serial ports gcs().setup_uarts(); + // update_send so that if the first packet we receive happens to + // be an arm message we don't trigger an internal error when we + // try to initialise stream rates in the main loop. + gcs().update_send(); #if LOGGING_ENABLED == ENABLED log_init();