mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 17:49:33 +00:00
Cleanups
This commit is contained in:
parent
7b81cfbe90
commit
147eef0af7
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user