v1.3.0
The v1.3.0 release of the HaritoraX-Interpreter package is now out! A feature update that includes more ways for you to grab info about the trackers!
Changelogs
- Tracker (dis)connect events
- New debug modes (0 = disabled, 1 = debug, 2 = debug w/ function info)
- Get tracker settings
- Get tracker raw hex settings
- Get tracker battery info
- Get tracker buttons info
- Fix info event (to actually broadcast the name of tracker, not the "type")
- Consistency and other bugfixes
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(2); // enable debug mode w/ function info
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.2.1...v1.3.0