diff --git a/Tools/AntennaTracker/AntennaTracker.pde b/Tools/AntennaTracker/AntennaTracker.pde index 7476b43adb..a7c82c0eaa 100644 --- a/Tools/AntennaTracker/AntennaTracker.pde +++ b/Tools/AntennaTracker/AntennaTracker.pde @@ -58,6 +58,7 @@ #include // Battery monitor library #include #include +#include // Configuration #include "config.h" @@ -191,6 +192,9 @@ static RC_Channel channel_pitch(CH_2); static const uint8_t num_gcs = MAVLINK_COMM_NUM_BUFFERS; static GCS_MAVLINK gcs[MAVLINK_COMM_NUM_BUFFERS]; +// board specific config +static AP_BoardConfig BoardConfig; + //////////////////////////////////////////////////////////////////////////////// // 3D Location vectors // Location structure defined in AP_Common diff --git a/Tools/AntennaTracker/Parameters.h b/Tools/AntennaTracker/Parameters.h index 15e8c1894e..a237546105 100644 --- a/Tools/AntennaTracker/Parameters.h +++ b/Tools/AntennaTracker/Parameters.h @@ -76,8 +76,8 @@ public: k_param_start_latitude, k_param_start_longitude, - k_param_startup_delay, + k_param_BoardConfig, k_param_channel_yaw = 200, k_param_channel_pitch, diff --git a/Tools/AntennaTracker/Parameters.pde b/Tools/AntennaTracker/Parameters.pde index a71d3cd12d..88cfdcb86e 100644 --- a/Tools/AntennaTracker/Parameters.pde +++ b/Tools/AntennaTracker/Parameters.pde @@ -149,6 +149,10 @@ const AP_Param::Info var_info[] PROGMEM = { GOBJECT(sitl, "SIM_", SITL), #endif + // @Group: BRD_ + // @Path: ../libraries/AP_BoardConfig/AP_BoardConfig.cpp + GOBJECT(BoardConfig, "BRD_", AP_BoardConfig), + // RC channel //----------- // @Group: RC1_ diff --git a/Tools/AntennaTracker/system.pde b/Tools/AntennaTracker/system.pde index 63e01bf72f..313d8c1c3d 100644 --- a/Tools/AntennaTracker/system.pde +++ b/Tools/AntennaTracker/system.pde @@ -14,6 +14,8 @@ static void init_tracker() // Check the EEPROM format version before loading any parameters from EEPROM load_parameters(); + BoardConfig.init(); + // reset the uartA baud rate after parameter load hal.uartA->begin(map_baudrate(g.serial0_baud, SERIAL0_BAUD));