Plane: enable AP_BoardConfig

This commit is contained in:
Andrew Tridgell 2014-01-20 12:58:49 +11:00
parent 50a90a1043
commit d3adf4c32c
4 changed files with 11 additions and 0 deletions

View File

@ -74,6 +74,7 @@
#include <AP_BattMonitor.h> // Battery monitor library
#include <AP_Arming.h>
#include <AP_BoardConfig.h>
// Pre-AP_HAL compatibility
#include "compat.h"
@ -127,6 +128,9 @@ static AP_Scheduler scheduler;
// mapping between input channels
static RCMapper rcmap;
// board specific config
static AP_BoardConfig BoardConfig;
// primary control channels
static RC_Channel *channel_roll;
static RC_Channel *channel_pitch;

View File

@ -100,6 +100,7 @@ public:
k_param_hil_err_limit,
k_param_sonar,
k_param_log_bitmask,
k_param_BoardConfig,
// 100: Arming parameters
k_param_arming = 100,

View File

@ -938,6 +938,10 @@ const AP_Param::Info var_info[] PROGMEM = {
// @Path: ../libraries/AP_BattMonitor/AP_BattMonitor.cpp
GOBJECT(battery, "BATT_", AP_BattMonitor),
// @Group: BRD_
// @Path: ../libraries/AP_BoardConfig/AP_BoardConfig.cpp
GOBJECT(BoardConfig, "BRD_", AP_BoardConfig),
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
// @Group: SIM_
// @Path: ../libraries/SITL/SITL.cpp

View File

@ -92,6 +92,8 @@ static void init_ardupilot()
//
load_parameters();
BoardConfig.init();
set_control_channels();
// reset the uartA baud rate after parameter load