From 10b9f2ebe07499b1bd58b76e03348d0bdb2c743b Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 27 Apr 2015 16:43:48 +0900 Subject: [PATCH] Tracker: snoop on all channels This ensures we check for vehicle data on all channels --- AntennaTracker/system.pde | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AntennaTracker/system.pde b/AntennaTracker/system.pde index 266f2d66ed..caaac64c8e 100644 --- a/AntennaTracker/system.pde +++ b/AntennaTracker/system.pde @@ -23,10 +23,8 @@ static void init_tracker() // init baro before we start the GCS, so that the CLI baro test works barometer.init(); - // init the GCS + // init the GCS and start snooping for vehicle data gcs[0].setup_uart(serial_manager, AP_SerialManager::SerialProtocol_Console, 0); - - // set up snooping on other mavlink destinations gcs[0].set_snoop(mavlink_snoop); // Register mavlink_delay_cb, which will run anytime you have @@ -38,12 +36,14 @@ static void init_tracker() usb_connected = true; check_usb_mux(); - // setup serial port for telem1 + // setup serial port for telem1 and start snooping for vehicle data gcs[1].setup_uart(serial_manager, AP_SerialManager::SerialProtocol_MAVLink, 0); + gcs[1].set_snoop(mavlink_snoop); #if MAVLINK_COMM_NUM_BUFFERS > 2 - // setup serial port for telem2 + // 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); #endif mavlink_system.sysid = g.sysid_this_mav;