Re: [magnetometer] Local coordinates could use further detail/examples

Thanks for the feedback @mfoltzgoogle, sorry that it took so long to respond.

>Tablet or convertible devices that are used in both portrait and landscape. Do coordinates change with screen orientation?

The hardware sensor has predefined axes, and as such, if the screen orientation changes, the axes won't, since the physical assembly of the sensor does not change on screen orientation change.

We will investigate this further in https://github.com/w3c/sensors/issues/257 from the API ergonomics point of view, this is a generic issue, tagged as Level 2.

>Smart watch form factor.

In this form factor it will be most probably like in the mobile device form factor, defined by the manufacturer of the smart watch, z pointing upwards from the screen etc.

>Maker-kit-style offboard sensors, e.g. [1]. This may just be "implementation dependent" :-)

Yes, this is implementation dependent. This is the reason we use "a device that hosts the sensor" language in related specs.

>Regarding the orientation question, based on the text in the spec, it seems like a mobile device implementing a compass would need to listen to Device Orientation to know how to translate inputs from the sensor onto the orientation of the rendering.

Similarly in scope for https://github.com/w3c/sensors/issues/257

I will close this issue now, but should you have any further comments we can open this issue again.

-- 
GitHub Notification of comment by anssiko
Please view or discuss this issue at https://github.com/w3c/magnetometer/issues/19#issuecomment-334446666 using your GitHub account

Received on Thursday, 5 October 2017 12:14:59 UTC