|
|
|
@ -171,9 +171,9 @@ static void init_ardupilot()
@@ -171,9 +171,9 @@ static void init_ardupilot()
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if MAVLINK_COMM_NUM_BUFFERS > 2 |
|
|
|
|
if (g.telem2_protocol == TELEM2_FRSKY_DPORT || |
|
|
|
|
g.telem2_protocol == TELEM2_FRSKY_SPORT) { |
|
|
|
|
frsky_telemetry.init(hal.uartD, g.telem2_protocol); |
|
|
|
|
if (g.serial2_protocol == SERIAL2_FRSKY_DPORT || |
|
|
|
|
g.serial2_protocol == SERIAL2_FRSKY_SPORT) { |
|
|
|
|
frsky_telemetry.init(hal.uartD, g.serial2_protocol); |
|
|
|
|
} else { |
|
|
|
|
gcs[2].setup_uart(hal.uartD, map_baudrate(g.serial2_baud), 128, 128); |
|
|
|
|
} |
|
|
|
@ -396,6 +396,6 @@ static void telemetry_send(void)
@@ -396,6 +396,6 @@ static void telemetry_send(void)
|
|
|
|
|
{ |
|
|
|
|
#if FRSKY_TELEM_ENABLED == ENABLED |
|
|
|
|
frsky_telemetry.send_frames((uint8_t)control_mode, |
|
|
|
|
(AP_Frsky_Telem::FrSkyProtocol)g.telem2_protocol.get()); |
|
|
|
|
(AP_Frsky_Telem::FrSkyProtocol)g.serial2_protocol.get()); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|