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
02f25e81f8
commit
f60d059618
|
@ -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