mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
02f25e81f8
commit
f60d059618
@ -438,7 +438,7 @@ void AP_Vehicle::setup()
|
|||||||
|
|
||||||
|
|
||||||
#if AP_SRV_CHANNELS_ENABLED
|
#if AP_SRV_CHANNELS_ENABLED
|
||||||
SRV_Channels::init();
|
AP::srv().init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// gyro FFT needs to be initialized really late
|
// gyro FFT needs to be initialized really late
|
||||||
|
Loading…
Reference in New Issue
Block a user