2011-09-12 20:54:47 -03:00
|
|
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2011-09-08 22:29:39 -03:00
|
|
|
|
|
|
|
// This file is just a placeholder for your configuration file. If you wish to change any of the setup parameters from
|
|
|
|
// their default values, place the appropriate #define statements here.
|
|
|
|
|
|
|
|
// For example if you wanted the Port 3 baud rate to be 38400 you would add a statement like the one below (uncommented)
|
|
|
|
//#define SERIAL3_BAUD 38400
|
|
|
|
|
2011-12-24 03:26:52 -04:00
|
|
|
# define CONFIG_APM_HARDWARE APM_HARDWARE_APM2
|
2011-09-08 22:29:39 -03:00
|
|
|
|
|
|
|
// You may also put an include statement here to point at another configuration file. This is convenient if you maintain
|
|
|
|
// different configuration files for different aircraft or HIL simulation. See the examples below
|
|
|
|
//#include "APM_Config_mavlink_hil.h"
|
|
|
|
//#include "Skywalker.h"
|
|
|
|
|
|
|
|
// The following are the recommended settings for Xplane simulation. Remove the leading "/* and trailing "*/" to enable:
|
|
|
|
|
|
|
|
/*
|
|
|
|
#define HIL_MODE HIL_MODE_ATTITUDE
|
2011-11-18 00:23:09 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
// HIL_MODE SELECTION
|
|
|
|
//
|
|
|
|
// Mavlink supports
|
|
|
|
// 1. HIL_MODE_ATTITUDE : simulated position, airspeed, and attitude
|
|
|
|
// 2. HIL_MODE_SENSORS: full sensor simulation
|
|
|
|
#define HIL_MODE HIL_MODE_ATTITUDE
|
|
|
|
|
|
|
|
// Sensors
|
|
|
|
// All sensors are supported in all modes.
|
|
|
|
// The magnetometer is not used in
|
|
|
|
// HIL_MODE_ATTITUDE but you may leave it
|
|
|
|
// enabled if you wish.
|
|
|
|
#define AIRSPEED_SENSOR ENABLED
|
|
|
|
#define MAGNETOMETER ENABLED
|
|
|
|
#define AIRSPEED_CRUISE 25
|
|
|
|
#define THROTTLE_FAILSAFE ENABLED
|
|
|
|
*/
|