From 8eb91a3b9e2dea36570ce3742116fa9585f3491c Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Wed, 22 Nov 2023 17:04:10 +0100 Subject: [PATCH] Adapt to virtual sensor changes in w3c/sensors#475 w3c/sensors#475 removed the "virtual sensor type" item from the "virtual sensor metadata" struct and turned it into a string that is referenced from the automation bits as well as (optionally) defined by a sensor type. Adapt to it here by removing mentions of `[=virtual sensor metadata/virtual sensor type=]` from the spec and adding virtual sensor types to each sensor type defined here. --- index.bs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index a114b0c..7a66cb6 100644 --- a/index.bs +++ b/index.bs @@ -139,6 +139,8 @@ The Gyroscope sensor type has the f :: Invoke the [=generic sensor permission revocation algorithm=] with "gyroscope". : [=Default sensor=] :: The device's main gyroscope sensor. + : [=Virtual sensor type=] + :: "gyroscope" A [=latest reading=] of a {{Sensor}} of Gyroscope sensor type includes three [=map/entries=] whose [=map/keys=] are "x", "y", "z" and whose [=map/values=] contain current angular @@ -244,9 +246,9 @@ This section extends [[GENERIC-SENSOR#automation]] by providing [=Gyroscope=]-sp The [=per-type virtual sensor metadata=] [=map=] must have the following [=map/entry=]: : [=map/key=] -:: "`gyroscope`" +:: "[=gyroscope virtual sensor type|gyroscope=]" : [=map/value=] -:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/virtual sensor type=] is [=Gyroscope=] and [=reading parsing algorithm=] is [=parse xyz reading=]. +:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/reading parsing algorithm=] is [=parse xyz reading=]. Acknowledgements {#acknowledgements} ================