signalk-hwt901b-imu-plus

0.1.5 • Public • Published

New version with added features of the great plugin W-Geronius/signalk-hwt901b-imu (https://github.com/W-Geronius/signalk-hwt901b-imu)

Original documentation (will be update)

======

SignalK node server plugin (BETA) reading roll, pitch and magnetic heading from WITMOTION's HWT910B sensor

INPUT:

as of device data sheet and own testing, cable plug respresenting the boat's stern:
0x55 0x53 PitchL PitchH RollL RollH YawL YawH VL VH SUM

CALCULATION:

  • Pitch (x axis):
    ((PitchH<<8)|PitchL)/32768*180(°)
  • Roll (y axis):
    ((RollH<<8)|RollL)/32768*180(°)
  • Yaw (z axis):
    ((YawH<<8)|YawL)/32768*180(°)
  • Version:
    (VH<<8)|VL
  • Checksum:
    SUM=0x55+0x53+RollH+RollL+PitchH+PitchL+YawH+YawL+VH+VL (least significant byte must match SUM)
  • Magnetic Heading:
    z axis value (yaw) plus an offset determined after calibration and install

PROCESSING:

  • Gyroscope has to be calibrated by wit motion windows software prior to final placement onboard
  • acceleration calibration, as well as levelling pitch & roll can be accomplished via the plugin's settings:

image

OUTPUT TO SIGNALK (in rad):

{"updates":[{"$source":"WIT.n",
             "values":
               [{"path": "navigation.headingMagnetic",
                         "value":123.456},
                {"path": "navigation.attitude",
                         "value":{"roll":0.123456,
                         "pitch":-0.123456,
                         "yaw":null}}
                ]
            }]
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.51latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.51
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.51
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i signalk-hwt901b-imu-plus

Weekly Downloads

2

Version

0.1.5

License

Apache-2.0

Unpacked Size

45.2 kB

Total Files

5

Last publish

Collaborators

  • techgardeners