Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Cleanups

Oleg Kalachev147eef0af784
diff --git a/flix/control.ino b/flix/control.ino
index 1fa5a40..6c16fb6 100644
--- a/flix/control.ino
+++ b/flix/control.ino
@@ -3,8 +3,6 @@
// Flight control
-#pragma diag_suppress 144, 513
-
#include "pid.h"
#include "vector.h"
#include "quaternion.h"
diff --git a/flix/estimate.ino b/flix/estimate.ino
index 83bb631..ecc8990 100644
--- a/flix/estimate.ino
+++ b/flix/estimate.ino
@@ -1,7 +1,7 @@
// Copyright (c) 2023 Oleg Kalachev <[email protected]>
// Repository: https://github.com/okalachev/flix
-// Estimation of attitude from gyro and accelerometer
+// Attitude estimation from gyro and accelerometer
#include "quaternion.h"
#include "vector.h"
diff --git a/flix/rc.ino b/flix/rc.ino
index 78814a4..73f3561 100644
--- a/flix/rc.ino
+++ b/flix/rc.ino
@@ -14,8 +14,6 @@ void setupRC()
RC.begin();
}
-static uint32_t lastReadRC = 0;
-
void readRC()
{
bool failSafe, lostFrame;
@@ -23,7 +21,6 @@ void readRC()
if (failSafe) { rcFailSafe++; return; } // TODO: NOT TESTED YET
if (lostFrame) { rcLostFrame++; return; }
normalizeRC();
- lastReadRC = stepTime;
}
}