Browse Source

Plane: enable AP_BoardConfig

master
Andrew Tridgell 11 years ago
parent
commit
d3adf4c32c
  1. 4
      ArduPlane/ArduPlane.pde
  2. 1
      ArduPlane/Parameters.h
  3. 4
      ArduPlane/Parameters.pde
  4. 2
      ArduPlane/system.pde

4
ArduPlane/ArduPlane.pde

@ -74,6 +74,7 @@ @@ -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; @@ -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;

1
ArduPlane/Parameters.h

@ -100,6 +100,7 @@ public: @@ -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,

4
ArduPlane/Parameters.pde

@ -938,6 +938,10 @@ const AP_Param::Info var_info[] PROGMEM = { @@ -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

2
ArduPlane/system.pde

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

Loading…
Cancel
Save