Re: [sensors] Handle sensors with multiple values

> Proposed resolution: the Generic Sensor API needs to support sensors
 with multiple values. This should be implementable using 
domain-specific named properties.

+ 1

Here are some examples:

```js
Accelerometer {
  pitch: The pitch angle in degrees. 
  roll: The roll angle in degrees.
  yaw: The yaw angle in degrees. 
  x: Value of x axis in G forces. 
  y: Value of y axis in G forces. 
  z: Value of z axis in G forces. 
  acceleration: The magnitude of the acceleration in G forces. 
  inclination: The incline of the device in degrees. 
  orientation: The orientation of the device (-3, -2, -1, 1, 2, 3). 
}
```

```js
Coordinates {
  lat: Value of latitude position
  lng: Value of longitude position
}

// ("lat" and "lng" can just as easily be defined in their full name 
form "latitude" "longitude", 
// but google maps uses "lat" and "lng", so matching the interface 
seems like a nice user experience
```

```js
Gyro {
  pitch: The pitch angular velocity in in degrees per second.
  roll: The roll angular velocity in in degrees per second.
  yaw: The yaw angular velocity in in degrees per second.
}

* rate = degrees per second  
```



-- 
GitHub Notif of comment by rwaldron
See https://github.com/w3c/sensors/issues/2#issuecomment-100307233

Received on Friday, 8 May 2015 17:36:14 UTC