Rev 2263 | Rev 2266 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2263 | Rev 2265 | ||
---|---|---|---|
Line 116... | Line 116... | ||
116 | /* Default Values for parameter set 1 */ |
116 | /* Default Values for parameter set 1 */ |
117 | /***************************************************/ |
117 | /***************************************************/ |
118 | void CommonDefaults(void) |
118 | void CommonDefaults(void) |
119 | { |
119 | { |
120 | EE_Parameter.Revision = EEPARAM_REVISION; |
120 | EE_Parameter.Revision = EEPARAM_REVISION; |
121 | - | ||
- | 121 | memset(EE_Parameter.Name,0,12); // delete name |
|
122 | if(PlatinenVersion >= 20) |
122 | if(PlatinenVersion >= 20) |
123 | { |
123 | { |
124 | EE_Parameter.Gyro_D = 10; |
124 | EE_Parameter.Gyro_D = 10; |
125 | EE_Parameter.Driftkomp = 0; |
125 | EE_Parameter.Driftkomp = 0; |
126 | EE_Parameter.GyroAccFaktor = 27; |
126 | EE_Parameter.GyroAccFaktor = 27; |
Line 261... | Line 261... | ||
261 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
261 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
262 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
262 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
263 | EE_Parameter.I_Faktor = 32; |
263 | EE_Parameter.I_Faktor = 32; |
264 | EE_Parameter.CouplingYawCorrection = 60; |
264 | EE_Parameter.CouplingYawCorrection = 60; |
265 | EE_Parameter.DynamicStability = 75; |
265 | EE_Parameter.DynamicStability = 75; |
266 | memcpy(EE_Parameter.Name, "Fast\0", 12); |
266 | memcpy(EE_Parameter.Name, "Fast",4); |
267 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
267 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
268 | } |
268 | } |
Line 269... | Line 269... | ||
269 | 269 | ||
Line 283... | Line 283... | ||
283 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
283 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
284 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
284 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
285 | EE_Parameter.I_Faktor = 16; |
285 | EE_Parameter.I_Faktor = 16; |
286 | EE_Parameter.CouplingYawCorrection = 70; |
286 | EE_Parameter.CouplingYawCorrection = 70; |
287 | EE_Parameter.DynamicStability = 70; |
287 | EE_Parameter.DynamicStability = 70; |
288 | memcpy(EE_Parameter.Name, "Normal\0", 12); |
288 | memcpy(EE_Parameter.Name, "Normal",6); |
289 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
289 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
290 | } |
290 | } |
Line 291... | Line 291... | ||
291 | 291 | ||
292 | /***************************************************/ |
292 | /***************************************************/ |
Line 304... | Line 304... | ||
304 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
304 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
305 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
305 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
306 | EE_Parameter.I_Faktor = 16; |
306 | EE_Parameter.I_Faktor = 16; |
307 | EE_Parameter.CouplingYawCorrection = 70; |
307 | EE_Parameter.CouplingYawCorrection = 70; |
308 | EE_Parameter.DynamicStability = 70; |
308 | EE_Parameter.DynamicStability = 70; |
309 | memcpy(EE_Parameter.Name, "Easy\0", 12); |
309 | memcpy(EE_Parameter.Name, "Easy", 4); |
310 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
310 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
311 | } |
311 | } |
Line 312... | Line 312... | ||
312 | 312 |