Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ements
  • Loading branch information...
commit 41ee42223425e5ba9fe2c6da4374cdc00dd6fa59 1 parent cb24319
@eelsirhc eelsirhc authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 AeroQuad/AeroQuad.ino
View
6 AeroQuad/AeroQuad.ino
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.