View Single Post
Old Dec 09, 2012, 04:34 PM
Dennis Frie is offline
Find More Posts by Dennis Frie
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,370 Posts
Quote:
Originally Posted by RickEis View Post
Hmm....yes I see what you are saying. Well, maybe you hit on it. Maybe you could have those options 1) based on amp draw or 2) based on speed 3) based on satellites ?
Year that could be a possibility, but have a look at the options available atm...
Already way too much.

/////////////////////////////////////////////
/// BASIC SETTINGS
/////////////////////////////////////////////

//===========================
// Video system: PAL or NTSC
//===========================
// Pal = 0
// NTSC = 1
#define VIDEO_SYSTEM 1

//===========================
// Units
//===========================
// 1 == meters, kilometers km/h,
// 0 == feet, miles and miles per hour.
#define UNITS 1

//===========================
// GPS baudrate
//===========================
// GPS BAUD-rate settings.
#define BAUD 9600
#define BAUD2 38400 // For testing, just ignore for now.

//===========================
// Analog input
//===========================
#define VOLT_MEAS 0 // Battery voltage A0
#define CURRENT_MEAS 2 // Current sensor A2
#define RSSI_MEAS 1 // RSSI or second battery on A1

//===========================
// Analog input calibration
//===========================
#define VOLT_GAIN_DEF 0.195 // For voltage-divider with 10K and 3.3K
#define CUR_GAIN_DEF 0.24 // 25 A current sensor.
// These values should more or less be correct. Feel free to make a calibration (a few measurements and a linear approksimation) if you feel like it.
// 25 A sensor = 0.24
// 50 A sensor = 0.49
// 100A sensor = 0.98

//===========================
// Battery/voltage alarm
//===========================
// Defined as voltage * 10. (for example 100 = 10 volt)
#define VOLT_ALARM_DEF 100

//===========================
// mah alarm
//===========================
// Just written as mAh. 2200 = 2200 mAh.
#define MAH_ALARM_DEF 2200

//===========================
// Use GPS
//===========================
// 1 = Use GPS
// 0 = Use without GPS
#define USE_GPS 1


//===========================
// Use PPM-in
//===========================
// 1 = Use PPM-in
// 0 = Don't use PPM-in
#define USE_PPM 1

#define PPM_POSITIVE 0 // positive or negative PPM?



//===========================
// Menu control channel
//===========================
#define MENU_CONTROL_CH1 3
#define MENU_CONTROL_CH2 2

//===========================
// Use saved values (From menu-system etc)?
//===========================
// 1 = Use saved values
// 0 = Don't use saved values
#define USED_SAVED_VALUES 1

//===========================
// Show timer
//===========================
// 1 = Show timer
// 0 = Don't show timer
#define SHOW_TIMER 1


// Altitude offset
//===========================
//Altitude offset (altitude is automatic set to 0 when home-position is set)
// 1 = on
// 0 = off
#define ALTITUDE_OFFSET 1

//===========================
// Show RSSI/2. battery or analog sensor
//===========================
// 1 = show RSSI
// 0 = Don't show
#define SHOW_RSSI 0

//===========================
// Show GPS-coordinates.
//===========================
// 1 = show GPS coordinates
// 0 = Don't show
#define SHOW_GPS_COORDINATES 1

#define LAT_LINE TOPLINE+1 // Line to show latitude coordinates
#define LAT_POS 1 // Position on line to show coordinates

#define LON_LINE TOPLINE+1 // Line to show longitude coordinates
#define LON_POS 24 // Position on line to show coordinates

//===========================
// Show battery voltage
//===========================
// 1 = show voltage
// 0 = don't show voltage
#define SHOW_VOLTAGE 1

//===========================
// Show current
//===========================
// 1 = show current
// 0 = don't show current
#define SHOW_CURRENT 1


/////////////////////////////////////////////////////////
/// MORE ADVANCED SETTINGS
/////////////////////////////////////////////////////////

//===========================
// EzUHF RSSI in PPM
//===========================
#define USE_EZUHF_RSSI 1

#define EZUHF_RSSI_CH 3
#define EZUHF_SIG_CH 4

#define EZUHF_RSSI_MIN 2175 //uS * 2
#define EZUHF_RSSI_MAX 3830 //uS * 2

#define EZUHF_SIG_MIN 2175 //uS * 2
#define EZUHF_SIG_MAX 3830 //uS * 2

//===========================
// Home-position delay
//===========================
#define SET_HOME_DELAY 46

//===========================
// Pressure sensor
//===========================
#define USE_BAROMETER 0 // Only simulation at the moment.

//===========================
// Gyro + accelerometer
//===========================
#define USE_ARTIFICIAL_HORIZON 0

//===========================
// Extend max LOS-range (from approx 46 km to 463 km max)
#define EXTEND_RANGE 1

// Clock is used in baud-settings
#define clock 16000000
#define BAUD_SETTINGS clock/16/BAUD-1
#define BAUD_SETTINGS2 clock/16/BAUD2-1

// Show summary when...
///*
#define summary_speed 5 // Speed less than (in km/h)
#define summary_los 100 // LOS less than (in meters)
#define summary_current 99 // Current less than (in amps)
#define summary_time 120 // Flight time more than (in seconds)
#define summary_altitude 999 // altitude less than (in meters)

// Update-rate. Used as 100/UPDATERATE, avoid to get decimal-numbers as they will be ignored resulting in in-accurate timing´
// Some optimisation have been done, should not be changed from 10.
#define UPDATERATE 10

#define USE_GPS_TIME 1

// Show heading home as numbers as well
#define SHOW_HEADING_HOME 0
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote