Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2655 → Rev 2656

/trunk/eeprom.c
116,6 → 116,14
void InsertDefaultParameters(unsigned char old_version)
{
EE_Parameter.Revision = EEPARAM_REVISION;
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Init the new Parameter
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
if(old_version <= 108)
{
EE_Parameter.GlobalConfig3 |= CFG3_RISE_FIRST_WAYPOINT;
}
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
}
 
/***************************************************/
147,7 → 155,7
EE_Parameter.BitConfig = 0; // Looping usw.
EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER;
EE_Parameter.ExtraConfig = CFG_GPS_AID | CFG2_VARIO_BEEP | CFG_LEARNABLE_CAREFREE | CFG_NO_RCOFF_BEEPING;
EE_Parameter.GlobalConfig3 = CFG3_NO_SDCARD_NO_START | CFG3_SPEAK_ALL | CFG3_NO_GPSFIX_NO_START;//
EE_Parameter.GlobalConfig3 = CFG3_NO_SDCARD_NO_START | CFG3_SPEAK_ALL | CFG3_NO_GPSFIX_NO_START | CFG3_RISE_FIRST_WAYPOINT;//
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
EE_Parameter.Receiver = RECEIVER_HOTT;
#else
/trunk/eeprom.h
4,7 → 4,7
#include <inttypes.h>
#include "twimaster.h"
 
#define EEPARAM_REVISION 108 // !!!Update NC also!!! is count up, if paramater stucture has changed (compatibility)
#define EEPARAM_REVISION 109 // !!!Update NC also!!! is count up, if paramater stucture has changed (compatibility)
#define EEMIXER_REVISION 1 // is count up, if mixer stucture has changed (compatibility)
#define EE_BACKWARD_COMP 1 // change if the eepropm parameters are not backwards compatible
 
53,7 → 53,7
 
//GlobalConfig3
#define CFG3_NO_SDCARD_NO_START 0x01
//#define CFG3_DPH_MAX_RADIUS 0x02
#define CFG3_RISE_FIRST_WAYPOINT 0x02
#define CFG3_VARIO_FAILSAFE 0x04
#define CFG3_MOTOR_SWITCH_MODE 0x08
#define CFG3_NO_GPSFIX_NO_START 0x10