mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Remove LED horizontality signalization
It's better to control the attitude estimation using QGC
This commit is contained in:
parent
c5c889679b
commit
2fdad7bdb6
@ -16,7 +16,6 @@ LowPassFilter<Vector> ratesFilter(RATES_LFP_ALPHA);
|
||||
void estimate() {
|
||||
applyGyro();
|
||||
applyAcc();
|
||||
signalizeHorizontality();
|
||||
}
|
||||
|
||||
void applyGyro() {
|
||||
@ -43,8 +42,3 @@ void applyAcc() {
|
||||
attitude *= Quaternion::fromAngularRates(correction);
|
||||
attitude.normalize();
|
||||
}
|
||||
|
||||
void signalizeHorizontality() {
|
||||
float angle = Vector::angleBetweenVectors(attitude.rotate(Vector(0, 0, 1)), Vector(0, 0, 1));
|
||||
setLED(angle < radians(15));
|
||||
}
|
||||
|
@ -34,7 +34,6 @@ Quaternion attitude;
|
||||
void computeLoopFreq();
|
||||
void applyGyro();
|
||||
void applyAcc();
|
||||
void signalizeHorizontality();
|
||||
void control();
|
||||
void interpretRC();
|
||||
void controlAttitude();
|
||||
|
Loading…
x
Reference in New Issue
Block a user