Subversion Repositories FlightCtrl

Rev

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

Rev 2039 Rev 2049
Line 198... Line 198...
198
        debugOut.digital[0] |= DEBUG_MAINLOOP_TIMER;
198
        debugOut.digital[0] |= DEBUG_MAINLOOP_TIMER;
199
      } else {
199
      } else {
200
        debugOut.digital[0] &= ~DEBUG_MAINLOOP_TIMER;
200
        debugOut.digital[0] &= ~DEBUG_MAINLOOP_TIMER;
Line 201... Line 201...
201
 
201
 
-
 
202
        J4HIGH;
-
 
203
        // This is probably the correct order:
-
 
204
        // The attitude computation should not depend on anything from control (except maybe the estimation of control activity level)
-
 
205
        // The control may depend on attitude - for example, attitude control uses pitch and roll angles, compass control uses yaw angle etc.
202
        J4HIGH;
206
        // Flight control uses results from both.
203
        calculateFlightAttitude();
207
        calculateFlightAttitude();
204
        controlMixer_periodicTask();
208
        controlMixer_periodicTask();
205
        flight_control();
209
        flight_control();