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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tank Adapter YDTA-01N to SK via Shipmodule Miniplex
#5
Hello,
I was having a look again in this issue tonight.
I do not understand the code.

I tried to comment-out the 2 buf lines, but it still does not give the correct result.
Actually I do not see difference in the output

Currently I have this in the log:

Code:
canboatjs:fromPgn parsed pgn {"prio":0,"pgn":127505,"dst":255,"src":391,"input":["$MXPGN,01F211,68BB,FF0000044C42B600*1A"],"fields":{"Level":0,"Capacity":305779814.8,"Reserved1":"0"},"description":"Fluid Level","timestamp":"2021-10-08T20:29:06.326Z"}



As you explained before the correct translation should be:
LEVEL: 42B6=17078x0.004= 68.312%
Capacity: 044C = 1100 = 110l lit

Is there a way I can add more detailed logging in this function in order to see what happens exactly?

Thanks for your help!
Reply


Messages In This Thread
RE: Tank Adapter YDTA-01N to SK via Shipmodule Miniplex - by Sjoerd02 - 2021-10-08, 10:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)