Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Drift is not properly set #68

Open
Wallbraker opened this issue Mar 25, 2021 · 0 comments
Open

Drift is not properly set #68

Wallbraker opened this issue Mar 25, 2021 · 0 comments

Comments

@Wallbraker
Copy link

accelX = Math.Sign(accelX) * (Math.Abs(accelX) - drift[0]);
accelX = Math.Sign(accelY) * (Math.Abs(accelY) - drift[1]);
accelX = Math.Sign(accelZ) * (Math.Abs(accelZ) - drift[2]);
accelX = Math.Sign(gyroX) * (Math.Abs(gyroX) - drift[3]);
accelX = Math.Sign(gyroY) * (Math.Abs(gyroY) - drift[4]);
accelX = Math.Sign(gyroZ) * (Math.Abs(gyroZ) - drift[5]);

These lines only set accelX.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant