Rev 918 | Rev 1155 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ingob | 1 | /*####################################################################################### |
2 | |||
3 | #######################################################################################*/ |
||
4 | |||
5 | extern volatile int UBat; |
||
395 | hbuss | 6 | extern volatile int AdWertNick, AdWertRoll, AdWertGier; |
7 | extern volatile int AdWertAccRoll,AdWertAccNick,AdWertAccHoch; |
||
1 | ingob | 8 | extern volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az; |
9 | extern volatile long Luftdruck; |
||
10 | extern volatile char messanzahl_Druck; |
||
11 | extern volatile unsigned int ZaehlMessungen; |
||
12 | extern unsigned char DruckOffsetSetting; |
||
1036 | hbuss | 13 | extern signed char ExpandBaro; |
1 | ingob | 14 | extern volatile int HoeheD; |
15 | extern volatile unsigned int MessLuftdruck; |
||
16 | extern volatile int StartLuftdruck; |
||
395 | hbuss | 17 | extern volatile char MessanzahlNick; |
918 | hbuss | 18 | extern unsigned char AnalogOffsetNick,AnalogOffsetRoll,AnalogOffsetGier; |
1 | ingob | 19 | |
304 | ingob | 20 | unsigned int ReadADC(unsigned char adc_input); |
21 | void ADC_Init(void); |
||
22 | void SucheLuftruckOffset(void); |
||
918 | hbuss | 23 | void SucheGyroOffset(void); |
1 | ingob | 24 | |
25 | |||
26 | #define ANALOG_OFF ADCSRA=0 |
||
27 | #define ANALOG_ON ADCSRA=(1<<ADEN)|(1<<ADSC)|(1<<ADATE)|(1<<ADPS2)|(1<<ADPS1)|(1<<ADPS0)|(1<<ADIE) |