From 147eef0af784af626ddc4ab1ec88f27ce1e40fb5 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 25 May 2023 11:42:13 +0300 Subject: [PATCH] Cleanups --- flix/control.ino | 2 -- flix/estimate.ino | 2 +- flix/rc.ino | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) 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 // 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; } }