Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite Automation section after w3c/sensors#470 #78

Merged
merged 5 commits into from
Oct 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -501,15 +501,21 @@ Automation {#automation}

This section extends [[GENERIC-SENSOR#automation]] by providing [=Orientation Sensor=]-specific virtual sensor metadata.

<div algorithm>
The <dfn>orientation reading parsing algorithm</dfn>, given a JSON {{Object}} |parameters|, must return the result of invoking [=parse quaternion reading=] with |parameters|.
</div>
<h3 dfn> Absolute Orientation Sensor automation</h3>
JuhaVainio marked this conversation as resolved.
Show resolved Hide resolved

The [=per-type virtual sensor metadata=] [=map=] must have the following [=map/entry=]:
: [=map/key=]
:: "`absolute-orientation`"
: [=map/value=]
:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/virtual sensor type=] is [[#absoluteorientationsensor-model|AbsoluteOrientationSensor]] and [=reading parsing algorithm=] is [=parse quaternion reading=].
JuhaVainio marked this conversation as resolved.
Show resolved Hide resolved

<h3 dfn>Relative Orientation Sensor automation</h3>

The [=per-type virtual sensor metadata=] [=map=] must have the following [=map/entry=]:
: [=map/key=]
:: "`absolute-orientation`" or "`relative-orientation`"
:: "`relative-orientation`"
: [=map/value=]
:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/virtual sensor type=] is [=Orientation Sensor=] and [=reading parsing algorithm=] is [=orientation reading parsing algorithm=].
:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/virtual sensor type=] is [[#relativeorientationsensor-model|RelativeOrientationSensor]] and [=reading parsing algorithm=] is [=parse quaternion reading=].

Acknowledgements {#acknowledgements}
================
Expand Down
Loading