diff --git a/apps/pushups/app.js b/apps/pushups/app.js index df8ff4c32..23c2f57d4 100644 --- a/apps/pushups/app.js +++ b/apps/pushups/app.js @@ -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) {