Crates.io | pni-sdk |
lib.rs | pni-sdk |
version | 0.1.0 |
source | src |
created_at | 2024-02-15 07:47:34.191291 |
updated_at | 2024-02-15 07:47:34.191291 |
description | Provides convenient, low-level bindings to several PNI-manufactured sensors, including compass and some AHRS sensors that support the PNI Serial Binary Protocol. |
homepage | https://www.pnicorp.com/targetpoint3/ |
repository | https://github.com/pnisensor/pni-sdk-rs |
max_upload_size | |
id | 1140761 |
size | 96,547 |
PNI’s compassing and (soon AHRS) modules, including the Prime, TCM, SeaTrax, and Trax, communicate using PNI’s binary protocol.
When running cargo test
, it defaults to running tests in parallel, with the number of jobs being the number of CPUs on your machine.
If tests are performed in parallel, then multiple threads will try to connect to the serialport, leading to a "device busy" failure, and undefined transaction order with the device.
Please run cargo test -j1
to limit the number of jobs to 1. Each test should have its own scope and drop
the serialport (or struct containing it) after it completes its test