w3c / sensors

Generic Sensor API
https://www.w3.org/TR/generic-sensor/
Other
127 stars 59 forks source link

Overhaul frequency management in the specification #468

Closed rakuco closed 11 months ago

rakuco commented 11 months ago

This commit addresses a few issues with the way frequency management was handled in the specification:

  1. "Sampling frequency" was interchangeably used as a number as well as an interval ("sampling frequency bounds"), and the latter was not even properly defined.
  2. The actual bounds were not properly defined, and neither was the clamping process that used them.
  3. There were too many frequency-related terms in use.

Let us start with the changes in the concepts and definitions:

With the above, the actual sampling bounds are defined and checked:

The "optimal sampling frequency" and "requested sampling frequency" s have been removed, and so has the "Find the reporting frequency of a sensor object" algorithm, which addresses point (3).

The "Automation" section has only received enough changes to avoid Bikeshed errors and warnings, as the entire section is being rewritten.

Related to #463.


Preview | Diff