v3.4.0
The v3.4.0 release of the HaritoraX-Interpreter package is now out to coincide with SlimeTora v1.5.0. This adds the long-awaited powering off BLE trackers and switching between connection modes, along with a few major bugfixes.
Changelogs
- Add powering off trackers for BLE
- Supports HaritoraX 2/Wireless
- Add switching trackers between connection modes
- Fix all trackers disconnecting if only one serial port is unavailable
- oops, before i disconnected all even if the others were working lmao
- Fix tracker assignments not working for assignments above 9 (hex)
- Fix BLE devices not filtering when disconnected
- Fix
fireTrackerMag()not working on HaritoraX 2
Installation
npm install haritorax-interpreter
Documentation
Will write actual documentation at some point, for now refer to the source code, examples, and JSDoc comments. You may also see how it's used in SlimeTora!
Supported devices
| Device | Supported | Elbow/Hip support | Additional trackers | Extensions |
|---|---|---|---|---|
| HaritoraX 2 | Y | Y | Y | Y |
| HaritoraX Wireless | Y | Y | Y | N |
| HaritoraX 1.1B | Y | Y | N | N |
| HaritoraX 1.1 | Y | Y | N | N |
| HaritoraX 1.0 | Y | Y | N | N |
| Haritora | ? | ? | N | N |
| Communication mode | Supported |
|---|---|
| Bluetooth (Low Energy) | Y |
| Bluetooth Classic (serial) | Y |
| GX6 Communication Dongle | Y |
| GX2 Communication Dongle | Y |
Example
import { HaritoraX } from "haritorax-interpreter";
// connect to haritorax wireless, enable debug logs, allow printing of processIMUData() logs (lots of spam), print raw unprocessed data (more spam!)
let device = new HaritoraX("wireless", true, true, true);
// start connecting to dongles via GX dongles (COM connection), with the ports COM4, COM5, COM6, and COM7
device.startConnection("com", ["COM4", "COM5", "COM6", "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("com");
}, 10000)Full Changelog: v3.3.2...v3.4.0