Add tiltfix() for compensation on given sensor values
pull/2581/head
Erik Andresen 2023-02-16 19:19:01 +01:00
parent f1ce35362e
commit 742bcdddab
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ exports.calibrate = () => {
}
exports.tiltfix = (m,g,O,S) => {
"ram"
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;
}