mirror of https://github.com/ArduPilot/ardupilot
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
502d987ab1
commit
b2ea50b1e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue