Plane: AP_Frsky_Telem uses singletons

This commit is contained in:
Peter Barker 2019-02-12 19:41:23 +11:00 committed by Francisco Ferreira
parent dab23b817c
commit cfb3dfc4e5
2 changed files with 2 additions and 2 deletions

View File

@ -410,7 +410,7 @@ private:
#if FRSKY_TELEM_ENABLED == ENABLED
// FrSky telemetry support
AP_Frsky_Telem frsky_telemetry{ahrs, battery, rangefinder};
AP_Frsky_Telem frsky_telemetry;
#endif
#if DEVO_TELEM_ENABLED == ENABLED
// DEVO-M telemetry support

View File

@ -101,7 +101,7 @@ void Plane::init_ardupilot()
// setup frsky
#if FRSKY_TELEM_ENABLED == ENABLED
// 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
#if DEVO_TELEM_ENABLED == ENABLED
devo_telemetry.init(serial_manager);