Skip to content

Multi-reading stats and getString() redesign #2

@awickert

Description

@awickert

Currently nReadings > 1 re-reads the same cached firmware value, so statistics are computed over identical readings. Truly independent readings require firmware on-demand triggering — see NorthernWidget/Project-Apis#17.

Library-side work once firmware prerequisite is met:

  • Store individual readings as int16_t[]
  • Compute Welford mean/std/sterr after updateMeasurements() over genuinely independent readings
  • Redesign getString()/getHeader() to reflect configured output

Open question: fixed-width CSV (stats only: mean, std, sterr) or variable-width (all N individual readings)? Downstream SD-card parsing implications for Margay users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions