Sub: Disable RCMAP

This commit is contained in:
Jacob Walser 2016-11-25 18:26:28 -05:00 committed by Andrew Tridgell
parent ee8670e73d
commit 6426ceec27
3 changed files with 14 additions and 0 deletions

View File

@ -962,9 +962,11 @@ const AP_Param::Info Sub::var_info[] = {
// GOBJECT(motors, "MOT_", AP_MotorsMulticopter),
//#endif
#if RCMAP_ENABLED == ENABLED
// @Group: RCMAP_
// @Path: ../libraries/AP_RCMapper/AP_RCMapper.cpp
GOBJECT(rcmap, "RCMAP_", RCMapper),
#endif
// @Group: EKF_
// @Path: ../libraries/AP_NavEKF/AP_NavEKF.cpp

View File

@ -81,7 +81,9 @@
#include <AC_Fence/AC_Fence.h> // ArduCopter Fence library
#include <AC_Avoidance/AC_Avoid.h> // Arducopter stop at fence library
#include <AP_Scheduler/AP_Scheduler.h> // main loop scheduler
#if RCMAP_ENABLED == ENABLED
#include <AP_RCMapper/AP_RCMapper.h> // RC input mapping library
#endif
#include <AP_Notify/AP_Notify.h> // Notify library
#include <AP_BattMonitor/AP_BattMonitor.h> // Battery monitor library
#include <AP_BoardConfig/AP_BoardConfig.h> // board configuration library
@ -255,7 +257,9 @@ private:
control_mode_t prev_control_mode;
mode_reason_t prev_control_mode_reason = MODE_REASON_UNKNOWN;
#if RCMAP_ENABLED == ENABLED
RCMapper rcmap;
#endif
// board specific config
AP_BoardConfig BoardConfig;

View File

@ -94,6 +94,14 @@
# define RPM_ENABLED DISABLED
#endif
//////////////////////////////////////////////////////////////////////////////
// RCMAP
//
#ifndef RCMAP_ENABLED
# define RCMAP_ENABLED DISABLED
#endif
//////////////////////////////////////////////////////////////////////////////
// Rangefinder
//