2016-02-17 21:25:59 -04:00
|
|
|
#pragma once
|
2012-04-30 04:17:14 -03:00
|
|
|
|
|
|
|
#include "defines.h"
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
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
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// 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
|
|
|
|
|
2013-07-14 20:57:00 -03:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CAMERA control
|
|
|
|
//
|
|
|
|
#ifndef CAMERA
|
2016-12-20 09:32:46 -04:00
|
|
|
#define CAMERA ENABLED
|
2012-04-30 04:17:14 -03:00
|
|
|
#endif
|
|
|
|
|
2019-02-07 19:45:23 -04:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// GRIPPER control
|
|
|
|
//
|
|
|
|
#ifndef GRIPPER_ENABLED
|
|
|
|
# define GRIPPER_ENABLED ENABLED
|
|
|
|
#endif
|
|
|
|
|
2018-08-29 21:34:39 -03:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// RALLY POINTS
|
|
|
|
//
|
2018-08-29 22:00:56 -03:00
|
|
|
#ifndef AP_RALLY
|
|
|
|
#define AP_RALLY ENABLED
|
2018-08-29 21:34:39 -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
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
2019-02-11 04:10:43 -04:00
|
|
|
// Logging control
|
2012-04-30 04:17:14 -03:00
|
|
|
//
|
|
|
|
#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
|
|
|
|
2018-08-27 16:55:29 -03:00
|
|
|
#ifndef OSD_ENABLED
|
|
|
|
#define OSD_ENABLED DISABLED
|
|
|
|
#endif
|
|
|
|
|