From 34a23e29d910d1b5b74a5099d5de8fd7a4d0f768 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Wed, 26 Jul 2023 23:41:47 +0200 Subject: [PATCH] Clean up some s that were not referenced (#465) This fixes Bikeshed warnings like LINT: Unexported dfn that's not referenced locally - did you mean to export it? values values Some definitions used to be referenced years ago in previous versions of the spec text. While here, also fix The var 'latest reading' (in algorithm 'update latest reading') is only used once. If this is not a typo, please add an ignore='' attribute to the . by referencing the dfn rather than using `latest reading` as a variable. Related to #444. --- index.bs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.bs b/index.bs index d5d6ee6..efc15c0 100644 --- a/index.bs +++ b/index.bs @@ -547,7 +547,7 @@ A [=device sensor=] measures a physical quantities and provides a corresponding sensor reading which is a source of information about the environment. -Each [=sensor reading=] is composed of the values +Each [=sensor reading=] is composed of the values of the physical quantity measured by the [=device sensor=] at time tn which is called the reading timestamp. @@ -558,8 +558,8 @@ a reference frame for the [=device sensor=]'s [=sensor readings=]. A [=device sensor=] that provides such [=sensor readings=] is referred to as spatial sensor. -A [=spatial sensor=] can be uniaxial, biaxial, -or triaxial, depending on the number of orthogonal axes in +A [=spatial sensor=] can be uniaxial, biaxial, +or triaxial, depending on the number of orthogonal axes in which it can perform simultaneous measurements. Scalar physical quantities (e.g. temperature) do not require @@ -645,11 +645,11 @@ for the given [=sensor types=] they are targeting. through a process called sensor fusion. This process provides [=high-level|higher-level=] or more accurate data (often at the cost of increased latency). -For example, the [=sensor readings|readings=] of a [=triaxial=] magnetometer +For example, the [=sensor readings|readings=] of a triaxial magnetometer needs to be combined with the [=sensor readings|readings=] of an accelerometer to provide a correct bearing. -Smart sensors and sensor hubs +Smart sensors and sensor hubs have built-in compute resources which allow them to carry out [=calibration=] and [=sensor fusion=] at the hardware level, freeing up CPU resources and lowering battery consumption in the process. @@ -1402,7 +1402,7 @@ to {{SensorErrorEventInit}}. 1. Let |type| be |sensor|'s associated [=sensor type=]. 1. If |type|'s [=threshold check algorithm=] is defined, then: 1. Let |result| be the result of invoking |type|'s [=threshold check algorithm=] - with |reading| and |latest reading|. + with |reading| and |sensor|'s [=latest reading=]. 1. If |result| is false, then abort these steps. 1. [=map/For each=] |key| → value of [=latest reading=]. 1. [=map/Set=] [=latest reading=][|key|] to the corresponding