Subversion Repositories FlightCtrl

Rev

Rev 2638 | Rev 2672 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2638 Rev 2656
Line 114... Line 114...
114
//+ we have an update -> insert the default parameters here
114
//+ we have an update -> insert the default parameters here
115
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
115
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
116
void InsertDefaultParameters(unsigned char old_version)
116
void InsertDefaultParameters(unsigned char old_version)
117
{
117
{
118
 EE_Parameter.Revision = EEPARAM_REVISION;
118
 EE_Parameter.Revision = EEPARAM_REVISION;
-
 
119
 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
120
 // Init the new Parameter
-
 
121
 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
 
122
 if(old_version <= 108)
-
 
123
  {
-
 
124
   EE_Parameter.GlobalConfig3 |= CFG3_RISE_FIRST_WAYPOINT;
-
 
125
  }
-
 
126
 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
119
}
127
}
Line 120... Line 128...
120
 
128
 
121
/***************************************************/
129
/***************************************************/
122
/*    Default Values for parameter set 1           */
130
/*    Default Values for parameter set 1           */
Line 145... Line 153...
145
*/
153
*/
146
        EE_Parameter.GyroAccAbgleich = 32;        // 1/k
154
        EE_Parameter.GyroAccAbgleich = 32;        // 1/k
147
        EE_Parameter.BitConfig = 0;              // Looping usw.
155
        EE_Parameter.BitConfig = 0;              // Looping usw.
148
        EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER;
156
        EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER;
149
        EE_Parameter.ExtraConfig = CFG_GPS_AID | CFG2_VARIO_BEEP | CFG_LEARNABLE_CAREFREE | CFG_NO_RCOFF_BEEPING;
157
        EE_Parameter.ExtraConfig = CFG_GPS_AID | CFG2_VARIO_BEEP | CFG_LEARNABLE_CAREFREE | CFG_NO_RCOFF_BEEPING;
150
        EE_Parameter.GlobalConfig3 = CFG3_NO_SDCARD_NO_START | CFG3_SPEAK_ALL | CFG3_NO_GPSFIX_NO_START;//
158
        EE_Parameter.GlobalConfig3 = CFG3_NO_SDCARD_NO_START | CFG3_SPEAK_ALL | CFG3_NO_GPSFIX_NO_START | CFG3_RISE_FIRST_WAYPOINT;//
151
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
159
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
152
        EE_Parameter.Receiver = RECEIVER_HOTT;
160
        EE_Parameter.Receiver = RECEIVER_HOTT;
153
#else
161
#else
154
        EE_Parameter.Receiver = RECEIVER_JETI;
162
        EE_Parameter.Receiver = RECEIVER_JETI;
155
#endif
163
#endif