mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-10 18:03:56 -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_RCMapper.h> // RC input mapping library
|
||||||
#include <AP_Notify.h> // Notify library
|
#include <AP_Notify.h> // Notify library
|
||||||
#include <AP_BattMonitor.h> // Battery monitor library
|
#include <AP_BattMonitor.h> // Battery monitor library
|
||||||
|
#include <AP_BoardConfig.h> // board configuration library
|
||||||
#if SPRAYER == ENABLED
|
#if SPRAYER == ENABLED
|
||||||
#include <AC_Sprayer.h> // crop sprayer library
|
#include <AC_Sprayer.h> // crop sprayer library
|
||||||
#endif
|
#endif
|
||||||
@ -423,6 +424,9 @@ static int8_t control_mode = STABILIZE;
|
|||||||
static uint8_t oldSwitchPosition;
|
static uint8_t oldSwitchPosition;
|
||||||
static RCMapper rcmap;
|
static RCMapper rcmap;
|
||||||
|
|
||||||
|
// board specific config
|
||||||
|
static AP_BoardConfig BoardConfig;
|
||||||
|
|
||||||
// receiver RSSI
|
// receiver RSSI
|
||||||
static uint8_t receiver_rssi;
|
static uint8_t receiver_rssi;
|
||||||
|
|
||||||
|
@ -70,6 +70,9 @@ public:
|
|||||||
// EPM object
|
// EPM object
|
||||||
k_param_epm,
|
k_param_epm,
|
||||||
|
|
||||||
|
// BoardConfig object
|
||||||
|
k_param_BoardConfig,
|
||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
//
|
//
|
||||||
k_param_log_bitmask = 20,
|
k_param_log_bitmask = 20,
|
||||||
|
@ -1049,6 +1049,10 @@ const AP_Param::Info var_info[] PROGMEM = {
|
|||||||
// @Path: ../libraries/AP_BattMonitor/AP_BattMonitor.cpp
|
// @Path: ../libraries/AP_BattMonitor/AP_BattMonitor.cpp
|
||||||
GOBJECT(battery, "BATT_", AP_BattMonitor),
|
GOBJECT(battery, "BATT_", AP_BattMonitor),
|
||||||
|
|
||||||
|
// @Group: BRD_
|
||||||
|
// @Path: ../libraries/AP_BoardConfig/AP_BoardConfig.cpp
|
||||||
|
GOBJECT(BoardConfig, "BRD_", AP_BoardConfig),
|
||||||
|
|
||||||
#if SPRAYER == ENABLED
|
#if SPRAYER == ENABLED
|
||||||
// @Group: SPRAYER_
|
// @Group: SPRAYER_
|
||||||
// @Path: ../libraries/AC_Sprayer/AC_Sprayer.cpp
|
// @Path: ../libraries/AC_Sprayer/AC_Sprayer.cpp
|
||||||
|
@ -123,6 +123,8 @@ static void init_ardupilot()
|
|||||||
// load parameters from EEPROM
|
// load parameters from EEPROM
|
||||||
load_parameters();
|
load_parameters();
|
||||||
|
|
||||||
|
BoardConfig.init();
|
||||||
|
|
||||||
relay.init();
|
relay.init();
|
||||||
|
|
||||||
bool enable_external_leds = true;
|
bool enable_external_leds = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user