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
|
|
|
|
//
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
2022-07-10 01:02:55 -03:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Dock mode - allows vehicle to dock to a docking target
|
|
|
|
#ifndef MODE_DOCK_ENABLED
|
2023-03-22 05:45:41 -03:00
|
|
|
# define MODE_DOCK_ENABLED AC_PRECLAND_ENABLED
|
2022-07-10 01:02:55 -03:00
|
|
|
#endif
|
|
|
|
|
2023-08-11 09:28:32 -03:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Follow mode - allows vehicle to follow target
|
|
|
|
#ifndef MODE_FOLLOW_ENABLED
|
|
|
|
# define MODE_FOLLOW_ENABLED AP_FOLLOW_ENABLED
|
|
|
|
#endif
|
|
|
|
|
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
|
|
|
|
|