mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 17:16:10 +00:00
Remove LED horizontality signalization
It's better to control the attitude estimation using QGC
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user