Skip to content

v1.5.2

Compare
Choose a tag to compare
@JovannMC JovannMC released this 12 Apr 18:23
· 231 commits to main since this release
dc6cdca

The v1.5.2 release of the HaritoraX-Interpreter package is now out. This fixes a (annoyingly unfixable for me) bug due to processTrackerSettings(). This also means the settings event now does NOT have the settings of the trackers when first starting a connection, and the program now only has settings that are set by setTrackerSettings()

Changelogs

  • Remove processTrackerSettings() to fix a (damn annoying) issue with desynced settings (especially with sensorAutoCorrection)
  • Slight optimizations
  • Package updates
  • Remove some unneeded files

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 Y
HaritoraX 1.1B ? ?
HaritoraX 1.1 ? ?
HaritoraX 1.0 ? ?
Haritora X X
Communication mode Supported
Bluetooth *
GX6 Communication Dongle Y
GX2 Communication Dongle Y

* partial support

Example

import { HaritoraXWireless } from "haritorax-interpreter";

let device = new HaritoraXWireless(2); // enable debug mode w/ function & line info
device.startConnection("gx", ["COM4", "COM5", "COM6", "COM7"]); // start connecting to dongles via GX dongles, with the ports COM4, COM5, COM6, and COM7

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

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

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

Full Changelog: v1.5.1...v1.5.2