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

How do you find the commands defined in commands.json? #2

Closed
JGuillaumin opened this issue Jan 19, 2018 · 1 comment
Closed

How do you find the commands defined in commands.json? #2

JGuillaumin opened this issue Jan 19, 2018 · 1 comment

Comments

@JGuillaumin
Copy link

I would like to know how do you find the commands defined in the json file.
The Adafruit controller can receive 16-bit messages (integers in [0, 4095]).
For exmples, these values can be sent to the steering motor : "left": 310, "right": 490.

But some messages are not interpreted by the gas or the steering motor.
For example, if I send 0 to the steering, nothing happens.
How can I find the complete dictionary {'value:action'} ? (where value is in [0, 4095])

My goal, find a finer set of commands for gas and steering!

@srdadian
Copy link
Collaborator

Hi!
The (annoying) thing is that those numbers depend on your servos/car/ESC...
If you're lucky, the info regarding your car might be online!
We did not find ours :( So there might be a more elegant way to do it but we just wrote a simple script to try out values and saved the ones that looked best. This is why we stored it in a json so it's easy to change!
Hope this helps :)

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

No branches or pull requests

3 participants