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

Handling a steering wheel (analog input) #9

Open
cyllboy opened this issue Aug 23, 2020 · 2 comments
Open

Handling a steering wheel (analog input) #9

cyllboy opened this issue Aug 23, 2020 · 2 comments
Labels
question Further information is requested

Comments

@cyllboy
Copy link

cyllboy commented Aug 23, 2020

Could you please point me to an example of how to handle an analog input (eg. steering wheel)? Is there any example I could look at to learn?
Thank you very much!

@toyoshim
Copy link
Owner

In this iona.ino configuration, iona reports 8 channels of analog inputs supports around the line 199.
Once the host, e.g. naomi, recognize this report, it will start asking kCmdAnalogInput to retrieve the analog input status. The command is handled around the line 233 in the iona.ino.

Currently, it simply returns [0x80, 0x00] for each analog input channel, and this represents the center position in unsigned 16-bits integer.

If you have additional code to get analog inputs from e.g. USB gamepad, you can pass the value from your managed controller here. You may need to investigate which channel of analog inputs used for the function you are interested in.

@cyllboy
Copy link
Author

cyllboy commented Aug 25, 2020 via email

@toyoshim toyoshim added the question Further information is requested label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants