tridge: my config

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1800 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-03-21 07:30:24 +00:00
parent ae9ae7f946
commit 216379e286
2 changed files with 51 additions and 27 deletions

View File

@ -1,28 +1,3 @@
// Example config file. Use APM_Config.h.reference and the wiki to find additional defines to setup your plane. // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
// Once you upload the code, run the factory "reset" to save all config values to EEPROM.
// After reset, use the setup mode to set your radio limits for CH1-4, and to set your flight modes.
// GPS is auto-selected
#define GCS_PROTOCOL GCS_PROTOCOL_NONE
//#define MAG_ORIENTATION AP_COMPASS_COMPONENTS_UP_PINS_BACK
# define SERIAL0_BAUD 38400
//# define STABILIZE_ROLL_P 0.4
//# define STABILIZE_PITCH_P 0.4
//# define STABILIZE_DAMPENER 0.1
//#define ACRO_RATE_TRIGGER 4200
// if you want full ACRO mode, set value to 0
// if you want safe ACRO mode, set value to 100
// if you want mostly stabilize with flips, set value to 4200
// Logging
//#define LOG_CURRENT ENABLED
#include "configs/tridge.h"

View File

@ -0,0 +1,49 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
// Example config file. Use APM_Config.h.reference and the wiki to find additional defines to setup your plane.
// Once you upload the code, run the factory "reset" to save all config values to EEPROM.
// After reset, use the setup mode to set your radio limits for CH1-4, and to set your flight modes.
// GPS is auto-selected
#define MAG_ORIENTATION AP_COMPASS_COMPONENTS_DOWN_PINS_FORWARD
#define SERIAL0_BAUD 115200
#define SERIAL3_BAUD 115200
// Hardware in the loop protocol
#if 0
# define HIL_MODE HIL_MODE_NONE
#else
# define HIL_MODE HIL_MODE_ATTITUDE
# define HIL_PROTOCOL HIL_PROTOCOL_MAVLINK
# define HIL_PORT 0
#endif
// You can set your gps protocol here for your actual
// hardware and leave it without affecting the hardware
// in the loop simulation
// Ground control station comms
#define GCS_PROTOCOL GCS_PROTOCOL_MAVLINK
#define GCS_PORT 0
//#define RADIO_OVERRIDE_DEFAULTS { 1500, 1500, 1000, 1500, 1000, 1000, 1000, 1815 }
#define FLIGHT_MODE_CHANNEL CH_8
#define FLIGHT_MODE_1 STABILIZE
#define FLIGHT_MODE_2 ALT_HOLD
#define FLIGHT_MODE_3 ACRO
#define FLIGHT_MODE_4 STABILIZE
#define FLIGHT_MODE_5 STABILIZE
#define FLIGHT_MODE_6 STABILIZE
//#define ALWAYS_RESET_RADIO_RANGE 1
//#define ALWAYS_RESET_MODES 1
#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX
// Use MODE1 arming
#define MOTOR_ARM_CONDITION (g.rc_3.control_in == 0 && g.rc_1.control_in > 2700)
#define MOTOR_DISARM_CONDITION (g.rc_3.control_in == 0 && g.rc_1.control_in < -2700)