You are reading a single comment by @HughB and its replies. Click here to read the full conversation.
  • It is tempting to think that its just a case of incrementing the RWA_THRESHOLD to 15 but we should understand whats gone on here in terms of the variation on accelerometers.

    Maybe we could introduce a calibration phase of some decription.
    The idea behind the gated code was to stop just raw noise being looked at.
    My observations did see that there was usually more positive noise than negative in the signal.
    Needs thinkng about.

    $ make;./main
    gcc -std=c99 main.c -I . -o main
    github.com/gfwilliams/step-count
    ----------------------------------
    X_STEPS = 6, RAW_THRESHOLD = 14
    File, Expected, Simulated, Diff, %, (Orignal)
    HughB-walk-6605.csv, 6605, 6397, -208, 96.85 %, (3223)
    HughB-walk-2350.csv, 2350, 2243, -107, 95.45 %, (1042)
    HughB-walk-a3070-b3046.csv, 3070, 3013, -57, 98.14 %, (1909)
    HughB-walk-a10021-b10248.csv, 10021, 10253, 232, 102.32 %, (12222)
    HughB-drive-36min-0.csv, 0, 160, 160, 0.00 %, (1199)
    HughB-drive-29min-0.csv, 0, 192, 192, 0.00 %, (1153)
    HughB-drive-a3-b136.csv, 3, 124, 121, 4133.33 %, (535)
    HughB-work-66.csv, 66, 97, 31, 146.97 %, (980)
    HughB-work-66.csv, 66, 97, 31, 146.97 %, (980)
    HughB-mixed-390.csv, 390, 541, 151, 138.72 %, (1871)
    HughB-general-a260-b573.csv, 260, 578, 318, 222.31 %, (3854)
    HughB-housework-a958-b2658.csv, 958, 2663, 1705, 277.97 %, (5762)
    log.csv, 60, 59, -1, 98.33 %, (1)
    TOTAL DIFFERENCE 4013
    
    $ make;./main
    gcc -std=c99 main.c -I . -o main
    github.com/gfwilliams/step-count
    ----------------------------------
    X_STEPS = 6, RAW_THRESHOLD = 15
    File, Expected, Simulated, Diff, %, (Orignal)
    HughB-walk-6605.csv, 6605, 6313, -292, 95.58 %, (3223)
    HughB-walk-2350.csv, 2350, 2233, -117, 95.02 %, (1042)
    HughB-walk-a3070-b3046.csv, 3070, 2979, -91, 97.04 %, (1909)
    HughB-walk-a10021-b10248.csv, 10021, 9870, -151, 98.49 %, (12222)
    HughB-drive-36min-0.csv, 0, 120, 120, 0.00 %, (1199)
    HughB-drive-29min-0.csv, 0, 153, 153, 0.00 %, (1153)
    HughB-drive-a3-b136.csv, 3, 111, 108, 3700.00 %, (535)
    HughB-work-66.csv, 66, 82, 16, 124.24 %, (980)
    HughB-work-66.csv, 66, 82, 16, 124.24 %, (980)
    HughB-mixed-390.csv, 390, 507, 117, 130.00 %, (1871)
    HughB-general-a260-b573.csv, 260, 479, 219, 184.23 %, (3854)
    HughB-housework-a958-b2658.csv, 958, 2321, 1363, 242.28 %, (5762)
    log.csv, 60, 0, -60, 0.00 %, (1)
    TOTAL DIFFERENCE 3242
    $ 
    
    
About

Avatar for HughB @HughB started