Subversion Repositories FlightCtrl

Rev

Rev 1639 | Rev 1644 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1639 Rev 1643
Line 252... Line 252...
252
          timerPolling = SetDelay(100);
252
          timerPolling = SetDelay(100);
253
          LIBFC_Polling();
253
          LIBFC_Polling();
254
        }
254
        }
255
        if(UpdateMotor && AdReady)      // ReglerIntervall
255
        if(UpdateMotor && AdReady)      // ReglerIntervall
256
            {
256
            {
-
 
257
J3High;
257
                    UpdateMotor=0;
258
                    UpdateMotor=0;
258
J4High;
-
 
259
            if(WinkelOut.CalcState) CalMk3Mag();
259
            if(WinkelOut.CalcState) CalMk3Mag();
260
            else MotorRegler();
260
            else MotorRegler();
261
            SendMotorData();
261
            SendMotorData();
-
 
262
J3Low;
262
if(UpdateMotor) DebugOut.Analog[17]++;
263
if(UpdateMotor) DebugOut.Analog[17]++;
263
J4Low;
-
 
264
            ROT_OFF;
264
            ROT_OFF;
265
            if(SenderOkay)  SenderOkay--;
265
            if(SenderOkay)  SenderOkay--;
266
                        else
266
                        else
267
                        {
267
                        {
268
                                TIMSK1 |= _BV(ICIE1); // enable PPM-Input
268
                                TIMSK1 |= _BV(ICIE1); // enable PPM-Input