Revert "magnav: fix calibration check"

This reverts commit d92dee6246.
pull/2581/head
Erik Andresen 2023-02-28 09:28:28 +01:00
parent d92dee6246
commit 096b8721fa
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ exports.calibrate = () => {
exports.tiltfix = (m,g,O,S) => {
"ram"
if (O && S) {
if (O & S) {
m.dx =(m.x-O.x)*S.x; m.dy=(m.y-O.y)*S.y; m.dz=(m.z-O.z)*S.z;
}
let d = Math.atan2(-m.dx,m.dy)*180/Math.PI;