On 27 August 2015 16:58:55 BST, Lars-Peter Clausen <lars@xxxxxxxxxx> wrote: >On 08/27/2015 05:40 PM, Lars-Peter Clausen wrote: >> On 08/27/2015 08:45 AM, Matt Ranostay wrote: >>> There are air quality sensors that report data back in parts per >million >>> of VOC (Volatile Organic Compounds) which are usually indexed from >CO2 >>> or another common pollutant. >>> >>> This patchset adds an IIO_PPM type because no other channels types >fit >>> this use case. >> >> Hm, I'm not sure if parts-per-million is a good channel type. It's >more of a >> scale. The type would be concentration.[...] > >Reading a bit more[1], concentration doesn't actually seem to be the >right >term in this case, the correct term is mole fraction. Maybe we can use >that >as the type. That also makes it clear that the unit is molecules per >molecule. > >- Lars > >[1] https://en.wikipedia.org/wiki/Concentration Works for me. I'm tending to prefer base units that don't have an arbitrary scale factor and use the IIO types to define. Molecules per molecule then use scale would be my preference. Agreed on using modifiers for what we are measuring. Guessing there aren't that many sensor types out there. If it gets really silly we can add a means of listing chemicals detected! J -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html