Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 893 → Rev 902

/branches/MicroMag3_Nick666/V0.69k/analog.c
17,8 → 17,6
volatile unsigned int MessLuftdruck = 1023;
unsigned char DruckOffsetSetting;
volatile int HoeheD = 0;
volatile char messanzahl_Druck;
volatile int tmpLuftdruck;
volatile unsigned int ZaehlMessungen = 0;
 
//#######################################################################################
57,6 → 55,8
SIGNAL(SIG_ADC)
//#######################################################################################
{
static char messanzahl_Druck;
static int tmpLuftdruck;
static unsigned char state = 0;
static unsigned int gier1, roll1, nick1;
 
101,9 → 101,7
break;
case 8:
if(PlatinenVersion == 10) AdWertNick = (ADC + nick1) / 2;
else AdWertNick = ADC + nick1;
//AdWertNick = 0;
//AdWertNick += Poti2;
else AdWertNick = ADC + nick1;
ADMUX = 5;
break;
case 9:
128,7 → 126,7
messanzahl_AccHoch = 1;
Aktuell_az = ADC;
Mess_Integral_Hoch += AdWertAccHoch; // Integrieren
Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämfen
Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämpfen
ADMUX = 3;
break;
case 10: