Tracker: initialise telem2

This commit is contained in:
Randy Mackay 2015-01-28 15:23:26 +09:00 committed by Andrew Tridgell
parent 4de0710f88
commit b12cf4644c
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ static void init_tracker()
// setup serial port for telem1
gcs[1].setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink1);
#if MAVLINK_COMM_NUM_BUFFERS > 2
// setup serial port for telem2
gcs[2].setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink2);
#endif
mavlink_system.sysid = g.sysid_this_mav;
if (g.compass_enabled==true) {