AP_Vehicle: create and use a singleton for SRV_Channels

avoid creation of static pointers to objects held within SRV_Channels
This commit is contained in:
Peter Barker 2024-11-09 18:17:27 +11:00 committed by Andrew Tridgell
parent 02f25e81f8
commit f60d059618
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ void AP_Vehicle::setup()
#if AP_SRV_CHANNELS_ENABLED
SRV_Channels::init();
AP::srv().init();
#endif
// gyro FFT needs to be initialized really late