|
|
|
@ -52,17 +52,13 @@ void Tracker::init_tracker()
@@ -52,17 +52,13 @@ void Tracker::init_tracker()
|
|
|
|
|
gcs[1].setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink, 0); |
|
|
|
|
gcs[1].set_snoop(mavlink_snoop_static); |
|
|
|
|
|
|
|
|
|
#if MAVLINK_COMM_NUM_BUFFERS > 2 |
|
|
|
|
// setup serial port for telem2 and start snooping for vehicle data
|
|
|
|
|
gcs[2].setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink, 1); |
|
|
|
|
gcs[2].set_snoop(mavlink_snoop_static); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if MAVLINK_COMM_NUM_BUFFERS > 3 |
|
|
|
|
// setup serial port for fourth telemetry port (not used by default) and start snooping for vehicle data
|
|
|
|
|
gcs[3].setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink, 2); |
|
|
|
|
gcs[3].set_snoop(mavlink_snoop_static); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
mavlink_system.sysid = g.sysid_this_mav; |
|
|
|
|
|
|
|
|
|