mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -04:00
AntennaTracker: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
This commit is contained in:
parent
bdf92e8c79
commit
3b0a1ef563
@ -112,11 +112,6 @@ void Tracker::one_second_loop()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
|
||||||
// needed for APM1 inertialsensor driver
|
|
||||||
AP_ADC_ADS7844 apm1_adc;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||||
|
|
||||||
Tracker::Tracker(void)
|
Tracker::Tracker(void)
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
#include <AP_AHRS/AP_AHRS.h> // ArduPilot Mega DCM Library
|
#include <AP_AHRS/AP_AHRS.h> // ArduPilot Mega DCM Library
|
||||||
#include <Filter/Filter.h> // Filter library
|
#include <Filter/Filter.h> // Filter library
|
||||||
#include <AP_Buffer/AP_Buffer.h> // APM FIFO Buffer
|
#include <AP_Buffer/AP_Buffer.h> // APM FIFO Buffer
|
||||||
#include <AP_HAL_AVR/memcheck.h>
|
|
||||||
|
|
||||||
#include <GCS_MAVLink/GCS_MAVLink.h> // MAVLink GCS definitions
|
#include <GCS_MAVLink/GCS_MAVLink.h> // MAVLink GCS definitions
|
||||||
#include <AP_SerialManager/AP_SerialManager.h> // Serial manager library
|
#include <AP_SerialManager/AP_SerialManager.h> // Serial manager library
|
||||||
|
@ -241,16 +241,4 @@ void Tracker::check_usb_mux(void)
|
|||||||
|
|
||||||
// the user has switched to/from the telemetry port
|
// the user has switched to/from the telemetry port
|
||||||
usb_connected = usb_check;
|
usb_connected = usb_check;
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
|
||||||
// the APM2 has a MUX setup where the first serial port switches
|
|
||||||
// between USB and a TTL serial connection. When on USB we use
|
|
||||||
// SERIAL0_BAUD, but when connected as a TTL serial port we run it
|
|
||||||
// at SERIAL1_BAUD.
|
|
||||||
if (usb_connected) {
|
|
||||||
serial_manager.set_console_baud(AP_SerialManager::SerialProtocol_Console, 0);
|
|
||||||
} else {
|
|
||||||
serial_manager.set_console_baud(AP_SerialManager::SerialProtocol_MAVLink, 0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user