mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Copter: AP_Frsky_Telem uses singletons
This commit is contained in:
parent
9023e6eb7d
commit
a0189d6060
@ -412,7 +412,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
|
||||
AP_DEVO_Telem devo_telemetry{ahrs};
|
||||
|
@ -91,8 +91,7 @@ void Copter::init_ardupilot()
|
||||
|
||||
#if FRSKY_TELEM_ENABLED == ENABLED
|
||||
// setup frsky, and pass a number of parameters to the library
|
||||
frsky_telemetry.init(serial_manager,
|
||||
get_frame_mav_type(),
|
||||
frsky_telemetry.init(get_frame_mav_type(),
|
||||
&ap.value);
|
||||
frsky_telemetry.set_frame_string(get_frame_string());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user