Browse Source

AP_Vehicle: fixed segfault in replay

zr-v5.1
Andrew Tridgell 4 years ago
parent
commit
ec11bf1146
  1. 3
      libraries/AP_Vehicle/AP_Vehicle.cpp

3
libraries/AP_Vehicle/AP_Vehicle.cpp

@ -130,7 +130,10 @@ void AP_Vehicle::setup() @@ -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());

Loading…
Cancel
Save