From facbfaf31fe17655a602db1945fde91b5aeb2a8c Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 2 May 2015 21:38:26 +0900 Subject: [PATCH] SerialManager: support for 4th mavlink channel --- libraries/AP_SerialManager/AP_SerialManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_SerialManager/AP_SerialManager.cpp b/libraries/AP_SerialManager/AP_SerialManager.cpp index 3cb2875143..83f4fecf9e 100644 --- a/libraries/AP_SerialManager/AP_SerialManager.cpp +++ b/libraries/AP_SerialManager/AP_SerialManager.cpp @@ -228,6 +228,10 @@ bool AP_SerialManager::get_mavlink_channel(enum SerialProtocol protocol, uint8_t mav_chan = MAVLINK_COMM_2; return true; } + if (instance == 2) { + mav_chan = MAVLINK_COMM_3; + return true; + } } // report failure