Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: ssensor-moving , Previous: ssensor-mac , Up: S , Home: Overview

Clamps Dictionary

ssensor-make-zupt

Function

(ssensor-make-zupt id)

Create a position-reset watcher for sensor id.

State machine:

  1. Wait until acc magnitude is within threshold g of 1g (sensor still), OR no data arrives for timeout seconds (delta gate suppressing TX).
  2. Once still for timeout seconds, reset position once.
  3. Wait until acc magnitude exceeds threshold (sensor moving again).
  4. Go to 1.

Returns an unwatch thunk to stop the watcher.

Arguments

id Integer in the range [1..127] denoting the id of the sensor.

Author: Orm Finnendahl

Created: 2026-08-15 Sa 16:32

Validate