You are reading a single comment by @HughB and its replies. Click here to read the full conversation.
  • Ok - so I think in practice the Test Harness results are a bit on the optimistic side.
    Just added a couple of recordings and logged what the Javascript version recorded.

    Does the M value come from the chip or is it calculated by the firmware ?

    gcc -std=c99 main.c -o main
    github.com/gfwilliams/step-count
    X_STEPS = 8, RAW_THRESHOLD = 17
    File, Expected, Simulated, Diff, (Orignal)
    HughB-walk-1834.csv, 1834, 1754, -80, (1093)
    HughB-walk-2331.csv, 2331, 2143, -188, (1874)
    HughB-walking-2350.csv, 2350, 2198, -152, (1042)
    HughB-walk-6605.csv, 6605, 6012, -593, (3223) // actual 3.12 => 5261 ie -1344 under
    HughB-driving-36min.csv, 0, 13, 13, (1199)
    HughB-driving-29min.csv, 0, 46, 46, (1153)
    HughB-driving-18.csv, 18, 78, 60, (580) // actual 3.12 => 9
    HughB-working-1h.csv, 0, 0, 0, (760)
    Hughb-work-66.csv, 66, 56, -10, (980)
    HughB-mixed-390.csv, 390, 356, -34, (1871)
    TOTAL DIFFERENCE 1455

About

Avatar for HughB @HughB started