Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jomapi does not work with AX6 #44

Closed
ttruty opened this issue Jul 21, 2021 · 1 comment
Closed

jomapi does not work with AX6 #44

ttruty opened this issue Jul 21, 2021 · 1 comment

Comments

@ttruty
Copy link

ttruty commented Jul 21, 2021

jomapi throw error on startup that the device # for the AX6 is invalid. Using the updated AX6 C code to compile the jar seems to have fixed the problem for on start, unsure if there are any other issues with the jomapi working with the AX6.

@danielgjackson
Copy link
Member

Apologies for the late reply.

The original JAR build of the Java binding for OMAPI predated the AX6 and the use of >16 bits for device IDs.

The library, libomapi, now has its own repository: github.com/digitalinteraction/libomapi

There's a newly built version of the JAR file: JOMAPI.jar

There is documentation for the underlying C API (which should closely match the Java API) at: OMAPI documentation

I'm afraid I've only been able to test the basics with the AX6, but almost all of the commands are the same. The AX6-specific overrides are quite hackily shoehorned into the original API calls, in particular: OmSetAccelConfig() using the upper 16-bits of the range parameter to set the gyroscope range (if left zero, the gyroscope will be disabled).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants