2012-04-30 04:17:14 -03:00
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
|
|
|
|
//
|
|
|
|
// DO NOT EDIT this file to adjust your configuration. Create your own
|
|
|
|
// APM_Config.h and use APM_Config.h.example as a reference.
|
|
|
|
//
|
|
|
|
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
|
|
|
|
///
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Default and automatic configuration details.
|
|
|
|
//
|
|
|
|
// Notes for maintainers:
|
|
|
|
//
|
|
|
|
// - Try to keep this file organised in the same order as APM_Config.h.example
|
|
|
|
//
|
2016-02-17 21:25:59 -04:00
|
|
|
#pragma once
|
2012-04-30 04:17:14 -03:00
|
|
|
|
|
|
|
#include "defines.h"
|
|
|
|
|
|
|
|
///
|
|
|
|
/// DO NOT EDIT THIS INCLUDE - if you want to make a local change, make that
|
|
|
|
/// change in your local copy of APM_Config.h.
|
|
|
|
///
|
|
|
|
#include "APM_Config.h" // <== THIS INCLUDE, DO NOT EDIT IT. EVER.
|
|
|
|
///
|
|
|
|
/// DO NOT EDIT THIS INCLUDE - if you want to make a local change, make that
|
|
|
|
/// change in your local copy of APM_Config.h.
|
|
|
|
///
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
2014-07-06 23:05:56 -03:00
|
|
|
// sensor types
|
|
|
|
|
2012-04-30 04:17:14 -03:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
2014-07-06 23:05:56 -03:00
|
|
|
// HIL_MODE OPTIONAL
|
|
|
|
|
|
|
|
#ifndef HIL_MODE
|
2016-12-20 09:32:46 -04:00
|
|
|
#define HIL_MODE HIL_MODE_DISABLED
|
2014-07-06 23:05:56 -03:00
|
|
|
#endif
|
|
|
|
|
2012-04-30 04:17:14 -03:00
|
|
|
#ifndef MAV_SYSTEM_ID
|
2016-12-20 09:32:46 -04:00
|
|
|
#define MAV_SYSTEM_ID 1
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
2017-11-30 21:54:45 -04:00
|
|
|
#ifndef ARM_DELAY_MS
|
|
|
|
#define ARM_DELAY_MS 2000
|
|
|
|
#endif
|
2012-04-30 04:17:14 -03:00
|
|
|
|
2014-07-29 08:36:26 -03:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// FrSky telemetry support
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef FRSKY_TELEM_ENABLED
|
2016-12-20 09:32:46 -04:00
|
|
|
#define FRSKY_TELEM_ENABLED ENABLED
|
2014-07-29 08:36:26 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2012-04-30 04:17:14 -03:00
|
|
|
#ifndef CH7_OPTION
|
2016-12-20 09:32:46 -04:00
|
|
|
#define CH7_OPTION CH7_SAVE_WP
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// MAGNETOMETER
|
|
|
|
#ifndef MAGNETOMETER
|
2016-12-20 09:32:46 -04:00
|
|
|
#define MAGNETOMETER ENABLED
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
2013-02-07 18:21:22 -04:00
|
|
|
// MODE
|
|
|
|
// MODE_CHANNEL
|
2012-04-30 04:17:14 -03:00
|
|
|
//
|
2013-02-07 18:21:22 -04:00
|
|
|
#ifndef MODE_CHANNEL
|
2016-12-20 09:32:46 -04:00
|
|
|
#define MODE_CHANNEL 8
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
2013-02-07 18:21:22 -04:00
|
|
|
#if (MODE_CHANNEL != 5) && (MODE_CHANNEL != 6) && (MODE_CHANNEL != 7) && (MODE_CHANNEL != 8)
|
2016-12-20 09:32:46 -04:00
|
|
|
#error XXX
|
|
|
|
#error XXX You must set MODE_CHANNEL to 5, 6, 7 or 8
|
|
|
|
#error XXX
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
2018-03-07 19:00:43 -04:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// VISUAL ODOMETRY
|
|
|
|
#ifndef VISUAL_ODOMETRY_ENABLED
|
|
|
|
# define VISUAL_ODOMETRY_ENABLED ENABLED
|
|
|
|
#endif
|
|
|
|
|
2012-04-30 04:17:14 -03:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// STARTUP BEHAVIOUR
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// GROUND_START_DELAY
|
|
|
|
//
|
|
|
|
#ifndef GROUND_START_DELAY
|
2016-12-20 09:32:46 -04:00
|
|
|
#define GROUND_START_DELAY 0
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// MOUNT (ANTENNA OR CAMERA)
|
|
|
|
//
|
|
|
|
#ifndef MOUNT
|
2016-12-20 09:32:46 -04:00
|
|
|
#define MOUNT ENABLED
|
2013-07-14 20:57:00 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CAMERA control
|
|
|
|
//
|
|
|
|
#ifndef CAMERA
|
2016-12-20 09:32:46 -04:00
|
|
|
#define CAMERA ENABLED
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
2017-02-20 10:06:20 -04:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// NAVL1
|
|
|
|
//
|
|
|
|
#ifndef NAVL1
|
|
|
|
#define NAVL1_PERIOD 8
|
|
|
|
#endif
|
|
|
|
|
2012-04-30 04:17:14 -03:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
2018-03-09 00:19:21 -04:00
|
|
|
// CRUISE_SPEED default
|
2012-04-30 04:17:14 -03:00
|
|
|
//
|
2018-03-09 00:19:21 -04:00
|
|
|
#ifndef CRUISE_SPEED
|
|
|
|
#define CRUISE_SPEED 2 // in m/s
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TURN_GAIN
|
2016-12-20 09:32:46 -04:00
|
|
|
#define TURN_GAIN 5
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Dataflash logging control
|
|
|
|
//
|
|
|
|
#ifndef LOGGING_ENABLED
|
2016-12-20 09:32:46 -04:00
|
|
|
#define LOGGING_ENABLED ENABLED
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
2016-12-20 09:32:46 -04:00
|
|
|
#define DEFAULT_LOG_BITMASK 0xffff
|
2012-04-30 04:17:14 -03:00
|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Developer Items
|
|
|
|
//
|
|
|
|
|
|
|
|
// if RESET_SWITCH_CH is not zero, then this is the PWM value on
|
|
|
|
// that channel where we reset the control mode to the current switch
|
|
|
|
// position (to for example return to switched mode after failsafe or
|
|
|
|
// fence breach)
|
|
|
|
#ifndef RESET_SWITCH_CHAN_PWM
|
2016-12-20 09:32:46 -04:00
|
|
|
#define RESET_SWITCH_CHAN_PWM 1750
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
2017-01-30 10:21:55 -04:00
|
|
|
|
|
|
|
#ifndef ADVANCED_FAILSAFE
|
|
|
|
#define ADVANCED_FAILSAFE DISABLED
|
|
|
|
#endif
|
2018-02-28 08:23:09 -04:00
|
|
|
|
|
|
|
#ifndef STATS_ENABLED
|
|
|
|
# define STATS_ENABLED ENABLED
|
|
|
|
#endif
|
2018-03-04 05:41:06 -04:00
|
|
|
|
|
|
|
#ifndef DEVO_TELEM_ENABLED
|
|
|
|
#if HAL_MINIMIZE_FEATURES
|
|
|
|
#define DEVO_TELEM_ENABLED DISABLED
|
|
|
|
#else
|
|
|
|
#define DEVO_TELEM_ENABLED ENABLED
|
|
|
|
#endif
|
|
|
|
#endif
|