mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 07:28:29 -04:00
Copter: enable AP_BoardConfig
This commit is contained in:
parent
89c99ce145
commit
50a90a1043
@ -128,6 +128,7 @@
|
||||
#include <AP_RCMapper.h> // RC input mapping library
|
||||
#include <AP_Notify.h> // Notify library
|
||||
#include <AP_BattMonitor.h> // Battery monitor library
|
||||
#include <AP_BoardConfig.h> // board configuration library
|
||||
#if SPRAYER == ENABLED
|
||||
#include <AC_Sprayer.h> // crop sprayer library
|
||||
#endif
|
||||
@ -423,6 +424,9 @@ static int8_t control_mode = STABILIZE;
|
||||
static uint8_t oldSwitchPosition;
|
||||
static RCMapper rcmap;
|
||||
|
||||
// board specific config
|
||||
static AP_BoardConfig BoardConfig;
|
||||
|
||||
// receiver RSSI
|
||||
static uint8_t receiver_rssi;
|
||||
|
||||
|
@ -70,6 +70,9 @@ public:
|
||||
// EPM object
|
||||
k_param_epm,
|
||||
|
||||
// BoardConfig object
|
||||
k_param_BoardConfig,
|
||||
|
||||
// Misc
|
||||
//
|
||||
k_param_log_bitmask = 20,
|
||||
|
@ -1049,6 +1049,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 SPRAYER == ENABLED
|
||||
// @Group: SPRAYER_
|
||||
// @Path: ../libraries/AC_Sprayer/AC_Sprayer.cpp
|
||||
|
@ -123,6 +123,8 @@ static void init_ardupilot()
|
||||
// load parameters from EEPROM
|
||||
load_parameters();
|
||||
|
||||
BoardConfig.init();
|
||||
|
||||
relay.init();
|
||||
|
||||
bool enable_external_leds = true;
|
||||
|
Loading…
Reference in New Issue
Block a user