From 52bdfcb8eaabd6ea71ca099c0c1e4a2dc04d91e4 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Mon, 8 Jan 2024 10:13:02 +0100 Subject: [PATCH] editorial: Use some virtual sensor type dfns from DEVICE-ORIENTATION (#77) Adapt to w3c/deviceorientation#124, which added and exported `dfn`s for "accelerometer virtual sensor type" and "linear-acceleration virtual sensor type" to be shared by that specification and this one. --- index.bs | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/index.bs b/index.bs index 5da337c..037ff6e 100644 --- a/index.bs +++ b/index.bs @@ -194,7 +194,7 @@ The Accelerometer sensor type h : [=Default sensor=] :: The device's main accelerometer sensor. : [=Virtual sensor type=] - :: "accelerometer" + :: "accelerometer" A [=latest reading=] for a {{Sensor}} of Accelerometer sensor type includes three [=map/entries=] whose [=map/keys=] are "x", "y", "z" and whose [=map/values=] contain device's [=acceleration=] @@ -225,7 +225,7 @@ The Linear Acceleration Sensor< : [=powerful feature/Permission revocation algorithm=] :: Invoke the [=generic sensor permission revocation algorithm=] with "accelerometer". : [=Virtual sensor type=] - :: "linear-acceleration" + :: "linear-acceleration" A [=latest reading=] for a {{Sensor}} of Linear Acceleration Sensor sensor type includes three [=map/entries=] whose [=map/keys=] are "x", "y", "z" and whose [=map/values=] contain device's [=linear acceleration=] @@ -436,25 +436,17 @@ Abstract Operations {#abstract-opertaions} Automation {#automation} ========== -This section extends [[GENERIC-SENSOR#automation]] by providing [=Accelerometer=]-specific virtual sensor metadata. +This section extends [[GENERIC-SENSOR#automation]] by providing [=Accelerometer=]-specific virtual sensor metadata. Some of the [=virtual sensor types=] used by this specification are defined in [[DEVICE-ORIENTATION]]. Accelerometer automation {#accelerometer-automation} ----------------------- -The [=per-type virtual sensor metadata=] [=map=] must have the following [=map/entry=]: -: [=map/key=] -:: "[=accelerometer virtual sensor type|accelerometer=]" -: [=map/value=] -:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/reading parsing algorithm=] is [=parse xyz reading=]. +The [=accelerometer virtual sensor type=] and its corresponding entry in the [=per-type virtual sensor metadata=] [=map=] are defined in [[DEVICE-ORIENTATION#automation]]. Linear Accelerometer automation {#linear-accelerometer-automation} ----------------------- -The [=per-type virtual sensor metadata=] [=map=] must have the following [=map/entry=]: -: [=map/key=] -:: "[=linear-acceleration virtual sensor type|linear-acceleration=]" -: [=map/value=] -:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/reading parsing algorithm=] is [=parse xyz reading=]. +The [=linear-acceleration virtual sensor type=] and its corresponding entry in the [=per-type virtual sensor metadata=] [=map=] are defined in [[DEVICE-ORIENTATION#automation]]. Gravity automation {#gravity-automation} -----------------------