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:
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!
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!