Code Monkey home page Code Monkey logo

signalk-hwt901b-imu-plus's Introduction

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}}
                ]
            }]
}

signalk-hwt901b-imu-plus's People

Contributors

techgardeners avatar w-geronius avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.