w3c / sensors

Generic Sensor API
https://www.w3.org/TR/generic-sensor/
Other
127 stars 59 forks source link

"Connect to sensor" does not take fusion sensors into consideration #479

Open rakuco opened 5 months ago

rakuco commented 5 months ago

https://w3c.github.io/sensors/#concepts-sensors says

In simple cases, a platform sensor corresponds to a single device sensor, but if the provided sensor readings are a product of sensor fusion performed in software, the platform sensor corresponds to a set of device sensors involved in the sensor fusion process.

whereas https://w3c.github.io/sensors/#connect-to-sensor has

If the device has a single device sensor which can provide readings for type, then [...] If the device has multiple device sensors which can provide readings for type, then

which essentially assumes there is one device sensor backing a platform sensor.

The language needs to be adjusted so that multiple device sensors are accepted and processed accordingly (i.e. platformSensor remains null if connecting to all required sensors does not work).

rakuco commented 5 months ago

https://w3c.github.io/sensors/#get-a-platform-sensors-sampling-bounds also assumes a platform sensor is connected to one device sensor.