[Gta04-owner] Which distri

Hermann Schwärzler hermann.schwaerzler at chello.at
Tue Sep 22 09:19:40 CEST 2015


Hi Christ,

On 09/22/2015 08:42 AM, Christ van Willegen wrote:
> On Mon, Sep 21, 2015 at 10:27 PM, Lukas Maerdian <luk at slyon.de> wrote:
>> I've integrated the air pressure sensor into Replicant just recently:
>> http://git.goldelico.com/?p=gta04-replicant-device.git;a=commit;h=47ca3dceb0a9f2d4106faad429a9e41f9dfd5a27
> 
> Nice work!
> 
> I took a look, in bmp085.c it says:
> 
>  171 float bmp085_convert(int value)
>  172 {
>  173         return value / 100.0f; //we need hPa, BMP085 delivers Pa
>  174 }
> 
> It looks like (since you divide by 100.f...) that the reading is in
> hPa (SI prefix h == 10^2) and you convert to Pa. Or do I read the
> comment wrong?

Yes you are reading that wrong. For a pressure of 1 bar the BMP085
delivers 100000 Pascal which gets converted to 1000 hecto-Pascal (aka
millibar) by this function.

> [...]

Greetings
Hermann


More information about the Gta04-owner mailing list