Subversion Repositories FlightCtrl

Rev

Rev 1869 | Rev 1887 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1869 Rev 1872
Line 144... Line 144...
144
 
144
 
145
        if (!cnt--) { // every 10th run (9.765625kHz/10 = 976.5625Hz)
145
  if (!cnt--) { // every 10th run (9.765625kHz/10 = 976.5625Hz)
146
                cnt = 9;
146
    cnt = 9;
147
                cnt_1ms ^= 1;
147
    cnt_1ms ^= 1;
-
 
148
    if (!cnt_1ms) {
-
 
149
      if (runFlightControl == 1)
-
 
150
        DebugOut.Digital[1] |= DEBUG_MAINLOOP_TIMER;
-
 
151
      else
148
                if (!cnt_1ms) {
152
        DebugOut.Digital[1] &= ~DEBUG_MAINLOOP_TIMER;
149
                        runFlightControl = 1; // every 2nd run (976.5625 Hz/2 = 488.28125 Hz)
-
 
150
                        DebugOut.Digital[0] |= DEBUG_MAINLOOP_TIMER;
153
      runFlightControl = 1; // every 2nd run (976.5625 Hz/2 = 488.28125 Hz)
151
                }
154
    }
152
                CountMilliseconds++; // increment millisecond counter
155
    CountMilliseconds++; // increment millisecond counter
Line 153... Line 156...
153
        }
156
  }