mirror of
https://github.com/okalachev/flix.git
synced 2026-06-27 21:46:38 +00:00
Don't apply level correction on idle thrust
This commit is contained in:
@@ -47,6 +47,7 @@ void applyAcc() {
|
||||
|
||||
void applyLevel() {
|
||||
if (landed) return;
|
||||
if (thrustTarget < 0.1) return; // skip at idle thrust
|
||||
|
||||
// assume the pilot keeps the drone more or less level in flight
|
||||
Vector up = Quaternion::rotateVector(Vector(0, 0, 1), attitude);
|
||||
|
||||
Reference in New Issue
Block a user