Rev 701 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 701 | Rev 707 | ||
---|---|---|---|
Line 234... | Line 234... | ||
234 | 234 | ||
235 | // loop with period of 10 ms / 100 Hz |
235 | // loop with period of 10 ms / 100 Hz |
236 | timer = SetDelay(10); |
236 | timer = SetDelay(10); |
Line 237... | Line 237... | ||
237 | while(!CheckDelay(timer)); |
237 | while(!CheckDelay(timer)); |
238 | 238 | ||
239 | // If Gas is less than 100, stop calibration with a delay of 0.5 seconds |
239 | // If thrust is less than 100, stop calibration with a delay of 0.5 seconds |
Line 240... | Line 240... | ||
240 | if (PPM_in[ParamSet.ChannelAssignment[CH_GAS]] < 100) measurement--; |
240 | if (PPM_in[ParamSet.ChannelAssignment[CH_THRUST]] < 100) measurement--; |
241 | } |
241 | } |
242 | 242 |