pushups: better situps detection

pull/3669/head
frederic wagner 2024-01-18 15:02:04 +01:00
parent 16f18d409e
commit 191e7fbd40
1 changed files with 1 additions and 7 deletions

View File

@ -9,13 +9,7 @@ const DETECTORS = [
return (xyz.y > 0.4)?1:0;
},
(xyz) => {
if (xyz.y > 0.4 && xyz.z > -1) {
return 1;
} else if (xyz.x < 0.4 && xyz.z < -1) {
return 0;
} else {
return null;
}
return (xyz.x > 0)?1:0;
},
(xyz) => {
if (xyz.z > -1) {