mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-28 19:48:31 -04:00
Plane: AP_Frsky_Telem uses singletons
This commit is contained in:
parent
dab23b817c
commit
cfb3dfc4e5
@ -410,7 +410,7 @@ private:
|
|||||||
|
|
||||||
#if FRSKY_TELEM_ENABLED == ENABLED
|
#if FRSKY_TELEM_ENABLED == ENABLED
|
||||||
// FrSky telemetry support
|
// FrSky telemetry support
|
||||||
AP_Frsky_Telem frsky_telemetry{ahrs, battery, rangefinder};
|
AP_Frsky_Telem frsky_telemetry;
|
||||||
#endif
|
#endif
|
||||||
#if DEVO_TELEM_ENABLED == ENABLED
|
#if DEVO_TELEM_ENABLED == ENABLED
|
||||||
// DEVO-M telemetry support
|
// DEVO-M telemetry support
|
||||||
|
@ -101,7 +101,7 @@ void Plane::init_ardupilot()
|
|||||||
// setup frsky
|
// setup frsky
|
||||||
#if FRSKY_TELEM_ENABLED == ENABLED
|
#if FRSKY_TELEM_ENABLED == ENABLED
|
||||||
// setup frsky, and pass a number of parameters to the library
|
// setup frsky, and pass a number of parameters to the library
|
||||||
frsky_telemetry.init(serial_manager, MAV_TYPE_FIXED_WING);
|
frsky_telemetry.init(MAV_TYPE_FIXED_WING);
|
||||||
#endif
|
#endif
|
||||||
#if DEVO_TELEM_ENABLED == ENABLED
|
#if DEVO_TELEM_ENABLED == ENABLED
|
||||||
devo_telemetry.init(serial_manager);
|
devo_telemetry.init(serial_manager);
|
||||||
|
Loading…
Reference in New Issue
Block a user