Rev 1643 | Rev 1648 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1643 | Rev 1644 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | 61 | ||
62 | 62 | ||
63 | void CalMk3Mag(void) |
63 | void CalMk3Mag(void) |
64 | { |
- | |
65 | static unsigned char stick = 1; |
64 | { |
66 | 65 | static unsigned char stick = 1; |
|
67 | if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > -20) stick = 0; |
66 | if(PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] > -20) stick = 0; |
68 | if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < -70) && !stick) |
67 | if((PPM_in[EE_Parameter.Kanalbelegung[K_NICK]] < -70) && !stick) |
69 | { |
68 | { |
Line 255... | Line 254... | ||
255 | if(UpdateMotor && AdReady) // ReglerIntervall |
254 | if(UpdateMotor && AdReady) // ReglerIntervall |
256 | { |
255 | { |
257 | J3High; |
256 | J3High; |
258 | UpdateMotor=0; |
257 | UpdateMotor=0; |
259 | if(WinkelOut.CalcState) CalMk3Mag(); |
258 | if(WinkelOut.CalcState) CalMk3Mag(); |
260 | else MotorRegler(); |
259 | else MotorRegler(); |
261 | SendMotorData(); |
260 | SendMotorData(); |
262 | J3Low; |
261 | J3Low; |
263 | if(UpdateMotor) DebugOut.Analog[17]++; |
262 | if(UpdateMotor) DebugOut.Analog[17]++; |
264 | ROT_OFF; |
263 | ROT_OFF; |
265 | if(SenderOkay) SenderOkay--; |
264 | if(SenderOkay) SenderOkay--; |
266 | else |
265 | else |
Line 343... | Line 342... | ||
343 | if(++second == 49) |
342 | if(++second == 49) |
344 | { |
343 | { |
345 | second = 0; |
344 | second = 0; |
346 | FlugSekunden++; |
345 | FlugSekunden++; |
347 | } |
346 | } |
348 | - | ||
349 | if(++timer2 == 2930) // eine Minute |
347 | if(++timer2 == 2930) // eine Minute |
350 | { |
348 | { |
351 | timer2 = 0; |
349 | timer2 = 0; |
352 | FlugMinuten++; |
350 | FlugMinuten++; |
353 | FlugMinutenGesamt++; |
351 | FlugMinutenGesamt++; |