From ec11bf1146c3ccb39e39f9a86cc3ceb077e32571 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 15 Apr 2021 07:51:20 +1000 Subject: [PATCH] AP_Vehicle: fixed segfault in replay --- libraries/AP_Vehicle/AP_Vehicle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.cpp b/libraries/AP_Vehicle/AP_Vehicle.cpp index 582b96716c..dace5829cb 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.cpp +++ b/libraries/AP_Vehicle/AP_Vehicle.cpp @@ -130,7 +130,10 @@ void AP_Vehicle::setup() init_ardupilot(); gcs().send_text(MAV_SEVERITY_INFO, "ArduPilot Ready"); +#if !APM_BUILD_TYPE(APM_BUILD_Replay) SRV_Channels::init(); +#endif + // gyro FFT needs to be initialized really late #if HAL_GYROFFT_ENABLED gyro_fft.init(AP::scheduler().get_loop_period_us());