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

Create motion joystick for driving #1

Open
Tracked by #10
derickson2402 opened this issue Apr 29, 2022 · 2 comments
Open
Tracked by #10

Create motion joystick for driving #1

derickson2402 opened this issue Apr 29, 2022 · 2 comments

Comments

@derickson2402
Copy link
Owner

Originally I thought you could just plug an Xbox controller into an Arduino over USB and use its values to transmit to the drone. Turns out, there's only like 3 models of Arduino that have a full USB implementation available (normal ones aren't fast/powerful enough) so this won't work without a computer as a middle-man.

Instead, there are like 10 extra IMU chips lying around, so hooking one up to the transmitter and using it for motion controls should work just fine. Might be annoying later on (especially if there is drift) but it will be highly configurable and (hopefully) straightforward.

@derickson2402
Copy link
Owner Author

Hm so forgot that the chip does not perform integration for us, it only reports change in angle and acceleration. Will need to perform the integration manually to track the current position of the 'joystick' and then send the corresponding values...

@derickson2402
Copy link
Owner Author

Hmmm am I going to just have to write my own code to callibrate and track the sensor? This might be more difficult than just using an xbox controller :(

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

No branches or pull requests

1 participant