(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