Rev 1596 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1596 | Rev 1604 | ||
---|---|---|---|
Line 151... | Line 151... | ||
151 | UBat = (3 * UBat + ADC / 3) / 4; |
151 | UBat = (3 * UBat + ADC / 3) / 4; |
152 | kanal = AD_ACC_Z; |
152 | kanal = AD_ACC_Z; |
153 | break; |
153 | break; |
154 | case 8: |
154 | case 8: |
155 | AdWertAccHoch = (signed int) ADC - NeutralAccZ; |
155 | AdWertAccHoch = (signed int) ADC - NeutralAccZ; |
- | 156 | /* // MartinR: deaktiviert |
|
156 | if(AdWertAccHoch > 1) |
157 | if(AdWertAccHoch > 1) |
157 | { |
158 | { |
158 | if(NeutralAccZ < 750) |
159 | if(NeutralAccZ < 750) |
159 | { |
160 | { |
160 | NeutralAccZ += 0.02; |
161 | NeutralAccZ += 0.02; |
Line 167... | Line 168... | ||
167 | { |
168 | { |
168 | NeutralAccZ-= 0.02; |
169 | NeutralAccZ-= 0.02; |
169 | if(modell_fliegt < 500) NeutralAccZ -= 0.1; |
170 | if(modell_fliegt < 500) NeutralAccZ -= 0.1; |
170 | } |
171 | } |
171 | } |
172 | } |
- | 173 | */ // MartinR: deaktiviert Ende |
|
- | 174 | ||
172 | messanzahl_AccHoch = 1; |
175 | messanzahl_AccHoch = 1; |
173 | Aktuell_az = ADC; |
176 | Aktuell_az = ADC; |
174 | Mess_Integral_Hoch += AdWertAccHoch; // Integrieren |
177 | Mess_Integral_Hoch += AdWertAccHoch; // Integrieren |
175 | Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämfen |
178 | Mess_Integral_Hoch -= Mess_Integral_Hoch / 1024; // dämfen |
176 | kanal = AD_DRUCK; |
179 | kanal = AD_DRUCK; |