Permalink
Browse files

moving measureCriticalSensors to 100Hz loop, no using 40/42 Hz measur…

…ements
  • Loading branch information...
eelsirhc committed Jun 9, 2012
1 parent cb24319 commit 41ee42223425e5ba9fe2c6da4374cdc00dd6fa59
Showing with 3 additions and 3 deletions.
  1. +3 −3 AeroQuad/AeroQuad.ino
View
@@ -1346,14 +1346,14 @@ void loop () {
currentTime = micros();
deltaTime = currentTime - previousTime;
- measureCriticalSensors();
-
+
// ================================================================
// 100hz task loop
// ================================================================
if (deltaTime >= 10000) {
-
+
frameCounter++;
+ measureCriticalSensors();
G_Dt = (currentTime - hundredHZpreviousTime) / 1000000.0;
hundredHZpreviousTime = currentTime;

0 comments on commit 41ee422

Please sign in to comment.