2011-09-17 15:25:31 -03:00
|
|
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
|
|
|
|
|
|
// Example config file. Take a look at config.h. Any term define there can be overridden by defining it here.
|
2011-03-21 04:35:54 -03:00
|
|
|
|
2012-08-09 20:41:25 -03:00
|
|
|
//#define CONFIG_APM_HARDWARE APM_HARDWARE_APM2
|
2012-09-05 19:36:57 -03:00
|
|
|
|
|
|
|
// Ordinary users should please ignore the following define.
|
|
|
|
// APM2_BETA_HARDWARE is used to support early (September-October 2011) APM2
|
|
|
|
// hardware which had the BMP085 barometer onboard. Only a handful of
|
|
|
|
// developers have these boards.
|
2012-08-09 20:41:25 -03:00
|
|
|
//#define APM2_BETA_HARDWARE
|
2012-01-08 21:59:55 -04:00
|
|
|
|
2011-03-21 04:35:54 -03:00
|
|
|
// GPS is auto-selected
|
|
|
|
|
2011-05-09 12:46:56 -03:00
|
|
|
//#define MAG_ORIENTATION AP_COMPASS_COMPONENTS_DOWN_PINS_FORWARD
|
2011-09-04 21:15:36 -03:00
|
|
|
//#define HIL_MODE HIL_MODE_ATTITUDE
|
2012-07-28 04:31:38 -03:00
|
|
|
//#define DMP_ENABLED ENABLED
|
2012-09-29 12:25:40 -03:00
|
|
|
//#define SECONDARY_DMP_ENABLED ENABLED // allows running DMP in parallel with DCM for testing purposes
|
2011-06-16 14:03:26 -03:00
|
|
|
|
2012-11-26 22:50:39 -04:00
|
|
|
//#define FRAME_CONFIG QUAD_FRAME
|
2012-08-21 23:19:50 -03:00
|
|
|
/*
|
|
|
|
* options:
|
|
|
|
* QUAD_FRAME
|
|
|
|
* TRI_FRAME
|
|
|
|
* HEXA_FRAME
|
|
|
|
* Y6_FRAME
|
|
|
|
* OCTA_FRAME
|
|
|
|
* OCTA_QUAD_FRAME
|
|
|
|
* HELI_FRAME
|
|
|
|
*/
|
2011-05-14 23:03:23 -03:00
|
|
|
|
2012-01-04 04:35:05 -04:00
|
|
|
//#define FRAME_ORIENTATION X_FRAME
|
2012-08-21 23:19:50 -03:00
|
|
|
/*
|
|
|
|
* PLUS_FRAME
|
|
|
|
* X_FRAME
|
|
|
|
* V_FRAME
|
|
|
|
*/
|
2011-05-18 20:38:24 -03:00
|
|
|
|
2012-08-09 20:41:25 -03:00
|
|
|
//#define CH7_OPTION CH7_SAVE_WP
|
2012-08-21 23:19:50 -03:00
|
|
|
/*
|
|
|
|
* CH7_DO_NOTHING
|
2012-12-06 04:40:36 -04:00
|
|
|
* CH7_SET_HOVER // deprecated
|
2012-08-21 23:19:50 -03:00
|
|
|
* CH7_FLIP
|
|
|
|
* CH7_SIMPLE_MODE
|
|
|
|
* CH7_RTL
|
2012-12-06 04:40:36 -04:00
|
|
|
* CH7_SAVE_TRIM
|
|
|
|
* CH7_ADC_FILTER // deprecated
|
2012-08-21 23:19:50 -03:00
|
|
|
* CH7_SAVE_WP
|
2012-12-06 04:40:36 -04:00
|
|
|
* CH7_MULTI_MODE // deprecated
|
|
|
|
* CH7_CAMERA_TRIGGER
|
2012-08-21 23:19:50 -03:00
|
|
|
*/
|
2011-09-14 17:58:18 -03:00
|
|
|
|
2012-08-09 20:41:25 -03:00
|
|
|
//#define TOY_EDF ENABLED
|
2012-08-16 19:41:35 -03:00
|
|
|
//#define TOY_MIXER TOY_LOOKUP_TABLE
|
2011-09-30 03:27:23 -03:00
|
|
|
|
2012-12-08 00:38:39 -04:00
|
|
|
// Inertia based contollers
|
2012-12-03 11:10:58 -04:00
|
|
|
//#define INERTIAL_NAV_XY ENABLED
|
2012-11-28 10:31:02 -04:00
|
|
|
#define INERTIAL_NAV_Z ENABLED
|
2012-06-14 02:27:03 -03:00
|
|
|
|
|
|
|
|
2012-08-21 23:19:50 -03:00
|
|
|
//#define RATE_ROLL_I 0.18
|
2011-09-25 19:34:59 -03:00
|
|
|
//#define RATE_PITCH_I 0.18
|
2011-10-21 00:38:36 -03:00
|
|
|
//#define MOTORS_JD880
|
2011-12-18 22:29:05 -04:00
|
|
|
//#define MOTORS_JD850
|
2011-10-15 19:29:33 -03:00
|
|
|
|
|
|
|
|
|
|
|
// agmatthews USERHOOKS
|
|
|
|
// the choice of function names is up to the user and does not have to match these
|
2012-08-05 19:21:14 -03:00
|
|
|
// uncomment these hooks and ensure there is a matching function on your "UserCode.pde" file
|
2011-10-15 19:29:33 -03:00
|
|
|
//#define USERHOOK_FASTLOOP userhook_FastLoop();
|
|
|
|
#define USERHOOK_50HZLOOP userhook_50Hz();
|
|
|
|
//#define USERHOOK_MEDIUMLOOP userhook_MediumLoop();
|
|
|
|
//#define USERHOOK_SLOWLOOP userhook_SlowLoop();
|
|
|
|
//#define USERHOOK_SUPERSLOWLOOP userhook_SuperSlowLoop();
|
|
|
|
#define USERHOOK_INIT userhook_init();
|
|
|
|
|
2012-08-05 19:21:14 -03:00
|
|
|
// the choice of included variables file (*.h) is up to the user and does not have to match this one
|
2011-10-15 19:29:33 -03:00
|
|
|
// Ensure the defined file exists and is in the arducopter directory
|
|
|
|
#define USERHOOK_VARIABLES "UserVariables.h"
|
|
|
|
|
2012-08-09 20:41:25 -03:00
|
|
|
//#define LOGGING_ENABLED DISABLED
|
2012-02-11 19:54:29 -04:00
|
|
|
|
2012-11-11 22:07:58 -04:00
|
|
|
// Used to set the max roll and pitch angles in Degrees * 100
|
|
|
|
//#define MAX_INPUT_ROLL_ANGLE 8000
|
|
|
|
//#define MAX_INPUT_PITCH_ANGLE 8000
|
2012-11-26 20:09:55 -04:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Bulk defines for TradHeli. Cleans up defines.h and config.h to put these here
|
|
|
|
#if FRAME_CONFIG == HELI_FRAME
|
|
|
|
# define RC_FAST_SPEED 125
|
|
|
|
# define RTL_YAW YAW_LOOK_AT_HOME
|
|
|
|
# define TILT_COMPENSATION 5
|
|
|
|
# define RATE_INTEGRATOR_LEAK_RATE 0.02
|
2012-12-04 14:32:40 -04:00
|
|
|
# define RATE_ROLL_D 0
|
|
|
|
# define RATE_PITCH_D 0
|
|
|
|
# define HELI_PITCH_FF 0
|
|
|
|
# define HELI_ROLL_FF 0
|
|
|
|
# define HELI_YAW_FF 0
|
2012-11-26 20:09:55 -04:00
|
|
|
#endif
|