AP_Vehicle: fixed segfault in replay

This commit is contained in:
Andrew Tridgell 2021-04-15 07:51:20 +10:00
parent 7a7ac0cd73
commit ec11bf1146

View File

@ -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());