Skip to content

v1.1.0

Compare
Choose a tag to compare
@JovannMC JovannMC released this 18 Mar 14:36
· 275 commits to main since this release
18a487e

The second release of the HaritoraX-Interpreter package! This is the first actual release on the NPM repo and adds basic bluetooth functionality.

Changelogs

  • Add partial bluetooth support
  • Some code changes

Installation

npm install haritorax-interpreter

Documentation

Will write actual documentation at some point, for now refer to the source code, examples, and JSDoc comments.

Supported devices

Device Supported Elbow/Hip support
HaritoraX Wireless Y X
HaritoraX 1.1B X X
HaritoraX 1.1 X X
HaritoraX 1.0 X X
Haritora X X
Communication mode Supported
Bluetooth *
GX6 Communication Dongle Y
GX2 Communication Dongle X

* partial support

Example

import { HaritoraXWireless } from "haritorax-interpreter";

let device = new HaritoraXWireless(true);
device.startConnection("gx6");

device.on("imu", (trackerName, rotation, gravity, ankle) => {
    // IMU data received, do stuff
});

setTimeout(() => {
    // apply the following settings to the rightAnkle tracker:
    // posture data transfer rate: 100FPS
    // sensor mode: 1 (magnetometer enabled)
    // sensor auto correction mode: accelerometer and gyroscope
    // ankle motion detection: enabled
    device.setTrackerSettings("rightAnkle", 100, 1, ['accel', 'gyro'], true);
}, 2000)

setTimeout(() => {
    device.stopConnection("gx6");
}, 10000)

Full Changelog: v1.0.0...v1.1.0