Subversion Repositories FlightCtrl

Rev

Rev 2135 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2135 Rev 2141
Line 82... Line 82...
82
 
82
 
83
#ifdef DO_PROFILE
83
#ifdef DO_PROFILE
84
    global10kHzClock++;
84
    global10kHzClock++;
Line 85... Line 85...
85
#endif
85
#endif
86
 
86
 
87
  if (!cnt--) { // every 10th run (9.765625kHz/10 = 976.5625Hz)
87
  if (!cnt--) { // every 10th run
88
    cnt = 9;
88
    cnt = 9;
89
    cnt_1ms ^= 1;
89
    cnt_1ms ^= 1;
90
    if (!cnt_1ms) {
90
    if (!cnt_1ms) {
91
      runFlightControl = 1; // every 2nd run (976.5625 Hz/2 = 488.28125 Hz)
91
      runFlightControl = 1; // every 2nd run
92
    }
92
    }
Line 93... Line 93...
93
    globalMillisClock++; // increment millisecond counter
93
    globalMillisClock++; // increment millisecond counter