This commit is contained in:
Oleg Kalachev 2023-05-25 11:42:13 +03:00
parent 7b81cfbe90
commit 147eef0af7
3 changed files with 1 additions and 6 deletions

View File

@ -3,8 +3,6 @@
// Flight control // Flight control
#pragma diag_suppress 144, 513
#include "pid.h" #include "pid.h"
#include "vector.h" #include "vector.h"
#include "quaternion.h" #include "quaternion.h"

View File

@ -1,7 +1,7 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com> // Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix // Repository: https://github.com/okalachev/flix
// Estimation of attitude from gyro and accelerometer // Attitude estimation from gyro and accelerometer
#include "quaternion.h" #include "quaternion.h"
#include "vector.h" #include "vector.h"

View File

@ -14,8 +14,6 @@ void setupRC()
RC.begin(); RC.begin();
} }
static uint32_t lastReadRC = 0;
void readRC() void readRC()
{ {
bool failSafe, lostFrame; bool failSafe, lostFrame;
@ -23,7 +21,6 @@ void readRC()
if (failSafe) { rcFailSafe++; return; } // TODO: NOT TESTED YET if (failSafe) { rcFailSafe++; return; } // TODO: NOT TESTED YET
if (lostFrame) { rcLostFrame++; return; } if (lostFrame) { rcLostFrame++; return; }
normalizeRC(); normalizeRC();
lastReadRC = stepTime;
} }
} }