This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Air Pressure in hPa - unit needs to be multiplied x1000
#7
(2016-04-18, 12:39 PM)Alpenskipper Wrote:
(2016-04-18, 10:50 AM)Sailoog Wrote: I found the error and fixed it. It will be added on v0.8.0 stable.
Thanks!

Perfect!

Hi,

Thanks for all the hard work putting Openplotter together, it's very impressive.

I'm not sure pressure units are quite right yet, before I hacked i2c.py I was getting something like this from a pressure sensor:

$OSXDR,P,1021,B,I2CP,C,28.5,C,I2CT*45  (Checksum will be wrong as I've edited it to illustrate the point)

If my understanding is right this means a pressure of 1021 with the units being Bar (B). 1021 Bar is an extremely high pressure indeed, it would probably kill us all!
I tested this with the next version (4.5) of OpenCpn and it would not read it until I changed it to this:

$OSXDR,P,1.02132,B,I2CP,C,28.5,C,I2CT*45

I note from the trail above that you have already changed this for version 0.8, however I think the units need to be mB (or preferably hPa nowadays) or the number needs to be put back to divide by 1000 again. Changing it to the form above would be better for future operation with OpenCpn I guess.

Cheers,

Aedan
Reply


Messages In This Thread
RE: Air Pressure in hPa - unit needs to be multiplied x1000 - by AedanC - 2016-12-02, 06:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)