tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Pressure sensors



At ${WORK} we frequently use single-digit milliTorr, as well as 1e-7 Torr or so, for lab measurements.  I'm not sure that you want to support sensors in that range; I'm just mentioning it in an attempt to quantify a possible use case.

Take care,

-Konrad


On 1/2/19 11:31 AM, David Holland wrote:
On Wed, Jan 02, 2019 at 01:56:12PM -0500, Greg Troxel wrote:
  > > I would make it Pa in the API and let userland translate to whatever
  > > values we want to display by default.
  >
  > That seems somewhat reasonable, except that in my experience everybody
  > wants to see atmospheric pressure in mb/hPa (if they aren't using inches
  > or mm of Hg).

This is an integer API underneath, right? So the choice of kernel ->
user reporting unit should be made on precision and range grounds.
Which isn't much of a concern for atmospheric pressure as the possible
range is narrow, but one could imagine someone trying to use the same
interface for lab equipment.



Home | Main Index | Thread Index | Old Index