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

Allow RC control of car (for training or driving around) #54

Closed
yconst opened this issue Feb 28, 2017 · 4 comments
Closed

Allow RC control of car (for training or driving around) #54

yconst opened this issue Feb 28, 2017 · 4 comments

Comments

@yconst
Copy link
Contributor

yconst commented Feb 28, 2017

As I understand RemoteClient already sends angle and throttle data when making the request to the Tornado server. I guess it would be feasible to get these values from an RC receiver (whose driver needs implementing), and pass them to the server.

@wroscoe
Copy link
Collaborator

wroscoe commented Feb 28, 2017

@yconst Yes this is feasible but it would add hardware and software complexity. Other car platforms I've seen use an arduino between the receiver and ESC to sniff the values and then record them. This also gets tricky for the platform to support user controls coming from the car and the web. Given that the web control can make car updates around ~30fps on a local network and since we now have support for Play Station controls through the browser what's the advantage you see to using the RC control?

@yconst
Copy link
Contributor Author

yconst commented Feb 28, 2017

I wasn't aware of the support for Playstation controls. That sounds great. Can you share some details on browser support and how to get it to work?

Re. RC, you are right that an interface is required, either in the form of an Arduino or otherwise. To be frank, I had in mind the NAVIO HAT, where RC input decoding is built in, so it adds minimal complexity.

@wroscoe
Copy link
Collaborator

wroscoe commented Feb 28, 2017

No docs yet but here's an email dump of the contributor (Alan Steremberg) explaining it.

I turned it on in chrome:
chrome://flags/#enable-gamepad-extensions

Here is my checkin:
alanswx@d49a813

It is setup to use the right stick on my playstation 3 controller.. I plugged it in via USB to my laptop. I didn't bother dealing with bluetooth yet, it doesn't seem super important.

It seems to drive really well - I can't wait to get some training data (unfortunately there are cars parked in the garage on my track!!)

@yconst
Copy link
Contributor Author

yconst commented Feb 28, 2017

Great stuff! I'll be testing this for sure.

@wroscoe wroscoe closed this as completed Mar 2, 2017
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