OpenMarine
IMU readings - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: IMU readings (/showthread.php?tid=946)



IMU readings - Tkalvol - 2018-01-11

I am a bit confused as to the output from SignalK. 
On the SK input diagnostics I get an understandable reading of 328.xxx deg., but the signalK value from the stream in NR shows a different value/format. How do I use this?

navigation.headingMagnetic5.72435522367


RE: IMU readings - SkipperEarly - 2018-01-12

5.7.. radiant = 328 degree you have to convert radiant into degrees


RE: IMU readings - jim321 - 2018-01-12

Code:
[{"id":"27f85a97.f0ece6","type":"function","z":"217cab7.d842f54","name":"Rad to Deg","func":"var rad = msg.payload;\nvar deg = rad * 180/3.14;\nmsg.payload=deg;\nreturn msg ;","outputs":1,"noerr":0,"x":796.0000858306885,"y":154.000018119812,"wires":[["a974ffe2.57316"]]}]
here is a function node 
its rad *180/3.14 = deg.

then you will find temp is in kelvin.... temp * 9.0 / 5.0 - 459.67 ...... thats to F °


RE: IMU readings - Tkalvol - 2018-01-12

Thank you both for your replies. That did it!


RE: IMU readings - seandepagnier - 2018-01-16

Why is it in radiant? This makes no sense to me, we should use degrees everywhere.


RE: IMU readings - jim321 - 2018-01-16

same reason they use kelvin to look intelligent.. JK lol..
really i don't know and agree with you. it thru me off too.
but not an big issue once you know.. just convert it in nodered.


RE: IMU readings - shark24 - 2018-01-16

I don't think SI-units are a bad thing...