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

Linux and serial support based on cmake #88

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

Marc-Pierre-Barbier
Copy link

@Marc-Pierre-Barbier Marc-Pierre-Barbier commented Nov 21, 2022

Please proofread the readme.md.

First i made hidapi into a submodule since it was copied from the original repository.
The problem is that visual studio solutions are not really flexible with submodules so i switched to cmake which allowed me to manager modules like i wanted. (visual studio hand an integration for this)

I added linux support nothing fancy here, but you shouldn't distribute linux binaries to avoid compatibility issues.

I added support for serial, so cheap Arduino can be used to connect to the gyros. I recommend setting the baudrate as high as you can to reduce latency.

i also moved firmwares into serial and hid folders

submodules.

I added dependencies that once were directly copied into the project as
git submodules.

The serial driver works on windows but you need to lower the baudrate if
you wan a good experience (and you might have to set the baud rate in
windows' device manager).
changed the default bitrate to a lower one.
high bitrate cause issues with counterfited arduinos
i still recommend increasing the baudrate as hight as your arduino can do

add parity verification. this should erase a few errors.

added reconnection on connection loss.
i removed lib serial port since it was preventing us from fixing the linux serial input.
this change mask the differences between windows and linux.
@Marc-Pierre-Barbier Marc-Pierre-Barbier changed the title [DRAFT DO NOT MERGE] Linux an serial support based on cmake [DRAFT DO NOT MERGE] Linux and serial support based on cmake Nov 21, 2022
@Marc-Pierre-Barbier Marc-Pierre-Barbier changed the title [DRAFT DO NOT MERGE] Linux and serial support based on cmake Linux and serial support based on cmake Nov 21, 2022
This is not meant to build windows binaries. but to be able to test if a windows build is possible from linux.
this should reduce the number of reboot required to check if it work on both linux and windows
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

Successfully merging this pull request may close these issues.

None yet

1 participant