Skip to content

Simulator: model finite magnetometer range #4

Description

@tribbloid

Source: Packages/ARGlassesSDK/__module~/driver/src/sim/TODO.md

Gaussian noise is currently added without a physical sensor range, allowing arbitrarily extreme finite magnetometer readings in long immediate streams.

Acceptance criteria:

  • Add a public configurable physical magnetometer range with documented microtesla units.
  • Normalize invalid configuration safely.
  • Clamp readings or expose saturation when the distorted noisy value exceeds the range; preserve the existing GlassesEvent API.
  • Add deterministic tests for positive/negative saturation, defaults, and invalid/boundary configuration.
  • Run formatting, checks, tests, and clippy applicable to the driver crate.

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