- From: Marcos Caceres <w3c@marcosc.com>
- Date: Tue, 15 May 2012 22:50:54 +0100
- To: Doug Turner <dougt@mozilla.com>
- Cc: Anssi Kostiainen <anssi.kostiainen@nokia.com>, "public-device-apis@w3.org public-device-apis@w3.org" <public-device-apis@w3.org>
On Tuesday, 15 May 2012 at 15:03, Doug Turner wrote: > Firefox used cm's as that is what every android phone and libhardware returns. We could upgrade to using mm without too much trouble. > > Any objection? > I think that would be good. However, it should be clear in the spec that the number represents the range of the sensor under ideal operational conditions and should not be relied on as an indicator of distance. TL;DR… I don't know where to file this, so I'll just write it here as it seems somewhat relevant when we talk about distance… Doing some rudimentary testing on my Galaxy S using the application "AndroSensor" and on my iPhone4s using the dialler application: with a black metallic surface (a remote control), at a ~45 degree angle, I am able to get within ~5mm to the sensor without triggering the sensor. Using a crumpled metallic round object (a ferrero rocher), I can trigger the sensor at a much larger distance (~5cm). With my hand alone, it only triggers at around 5-4cm. Glass is even more interesting, as it only seems to trigger parallel to the sensor… I can put the glass right on top of the sensor at a slight angle and it does not trigger. A convex metallic object (an ashtray), is also able to successfully deflect the beam at an angle. I'll note that the AndroSensor application is only able to report 0cm, or 5cm, but visually I can see that there is quite a lot of variance in height depending on what object I use. I'll also note that on the iPhone, the only kind of application that can reliably use this sensor appear to be "push up" fitness applications (apart from the dialler). If you have not done so, please test various objects yourself. Just hold anything at an angle and you will see how much variance there is. So, under "ideal conditions" (skin/solid non-reflective object parallel to the sensor), this sensors are fairly accurate. Otherwise, their applications are fairly limited with regards to distance. -- Marcos Caceres http://datadriven.com.au
Received on Tuesday, 15 May 2012 21:51:31 UTC