Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2329 → Rev 2330

/trunk/eeprom.h
8,6 → 8,7
#define EEMIXER_REVISION 1 // is count up, if mixer stucture has changed (compatibility)
 
#define EEPROM_ADR_PARAM_BEGIN 0
#define EE_DUMMY 0 // Byte
#define PID_EE_REVISION 1 // byte
#define PID_ACTIVE_SET 2 // byte
#define PID_PRESSURE_OFFSET 3 // byte
/trunk/fc.c
345,7 → 345,8
sucess = 0;
}
}
MesswertNick = 0;
EEAR = EE_DUMMY; // Set the EEPROM Address pointer to an unused space
MesswertNick = 0;
MesswertRoll = 0;
MesswertGier = 0;
Delay_ms_Mess(100);
399,6 → 400,7
if(AdjustmentMode != 0 && ACC_AltitudeControl) if((NeutralAccZ < 682 - 25) || (NeutralAccZ > 682 + 25)) { VersionInfo.HardwareError[0] |= FC_ERROR0_ACC_TOP; sucess = 0;};
#else
NeutralAccZ = (int16_t)GetParamWord(PID_ACC_TOP);
EEAR = EE_DUMMY; // Set the EEPROM Address pointer to an unused space
#endif
 
if((AdNeutralNick < 150 * 16) || (AdNeutralNick > 850 * 16)) { VersionInfo.HardwareError[0] |= FC_ERROR0_GYRO_NICK; };
/trunk/main.c
116,14 → 116,10
//############################################################################
{
unsigned int timer,i,timer2 = 0, timerPolling;
 
DDRB = 0x00;
PORTB = 0x00;
PORTB = 0x00;
DDRD = 0x0A; // UART & J3 J4 J5
PORTD = 0x5F; // PPM-Input & UART
 
if(GetParamByte(PID_EE_REVISION) == EEPARAM_REVISION - 50) SetParamByte(PID_EE_REVISION,EEPARAM_REVISION); // remove the EEPARAM_REVISION_SUB from Version 0.90g
 
for(timer = 0; timer < 1000; timer++); // verzögern
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
if(PINB & 0x02)
135,11 → 131,6
{
PlatinenVersion = 23; ACC_AltitudeControl = 1;
}
if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION))
{
SetParamByte(PID_EE_REVISION,0x00); // reset the Settings if the Version changed
SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // Remember the Version number
}
#else
if(PINB & 0x01)
{
186,6 → 177,18
LIBFC_Init(LIB_FC_COMPATIBLE);
GRN_ON;
sei();
if(GetParamByte(PID_EE_REVISION) == EEPARAM_REVISION - 50) SetParamByte(PID_EE_REVISION,EEPARAM_REVISION); // remove the EEPARAM_REVISION_SUB from Version 0.90g
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION))
{
if(GetParamByte(PID_HARDWARE_VERSION) == 21) SetParamByte(PID_EE_REVISION,0); // reset the Settings if the Version changed to V2.2
SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // Remember the Version number
wdt_enable(WDTO_15MS); // Reset-Commando
printf("\n\r--> Hardware Version Byte Changed <--");
while(1);
}
#endif
ParamSet_Init();
 
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
274,10 → 277,10
DebugOut.Status[0] = 0x01 | 0x02;
JetiBeep = 0;
if(EE_Parameter.ExtraConfig & CFG_NO_RCOFF_BEEPING) DisableRcOffBeeping = 1;
while (1)
while(1)
{
if(ReceiverUpdateModeActive) while (1) PORTC &= ~(1<<7); // Beeper off
 
EEAR = EE_DUMMY; // Set the EEPROM Address pointer to an unused space
//GRN_ON;
if(UpdateMotor && AdReady) // ReglerIntervall
{
/trunk/version.txt
581,4 → 581,8
- Auto Start and landing for Waypoints
- back to old eeprom-compatiblity to remain compatible to other Tools
- HoTT-Bugfix: no speech while vario tone
- Bugfix: Wrong error speech in JetiEX ("Error calibration")
- Bugfix: Wrong error speech in JetiEX ("Error calibration")
0.90j (23.05.2013)
- Changes for better EEPROM-Safety