OCCRA
Go to Post If you have time at a competition, stop and thank some of the people wearing the crew shirts. They are working very hard to make sure the competition goes as smoothly as possible. - Greg Young [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-17-2018, 07:21 PM
Crabcakes5's Avatar
Crabcakes5 Crabcakes5 is offline
Registered User
FRC #0156 (RPM - Robotics Plus Mayhem)
Team Role: Programmer
 
Join Date: May 2017
Rookie Year: 2015
Location: United States
Posts: 14
Crabcakes5 is an unknown quantity at this point
Question Connect Xbox Controller Directly to Roborio

In the off season, our team is working on a new demo robot for informational outreach events in order to showcase some of the more fun aspects of robotics. However, our project requires us to directly connect the USB controller to the robot's USB ports rather than to the driver station itself which will still be connected for emergency shutoff.

Is it even possible to connect directly to the robot, or should we invest in a wireless Xbox Controller to plug into the PC while used on the robot (which would probably increase latency for the driver)?

Thanks for the help!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-17-2018, 08:31 PM
nickbrickmaster nickbrickmaster is offline
Registered User
AKA: Nick Schatz
no team (3184 Alum)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 453
nickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond repute
Re: Connect Xbox Controller Directly to Roborio

Totally doable, but might require some effort.

I think you'll probably want to compile https://github.com/xboxdrv/xboxdrv for the RIO. Quick googling also shows https://github.com/williamahartman/Jamepad as a way to read gamepads directly from Java instead of going through the driver station.
__________________
Proceed as if success is inevitable.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-17-2018, 09:10 PM
Crabcakes5's Avatar
Crabcakes5 Crabcakes5 is offline
Registered User
FRC #0156 (RPM - Robotics Plus Mayhem)
Team Role: Programmer
 
Join Date: May 2017
Rookie Year: 2015
Location: United States
Posts: 14
Crabcakes5 is an unknown quantity at this point
Re: Connect Xbox Controller Directly to Roborio

Quote:
Originally Posted by nickbrickmaster View Post
Totally doable, but might require some effort.

I think you'll probably want to compile https://github.com/xboxdrv/xboxdrv for the RIO. Quick googling also shows https://github.com/williamahartman/Jamepad as a way to read gamepads directly from Java instead of going through the driver station.
Oh wow, thanks! Do you know if there is another method for reading the gamepads using C++ instead of Java currently? Thanks again!
Reply With Quote
  #4   Spotlight this post!  
Unread 05-17-2018, 09:19 PM
Zeeman Zeeman is offline
Registered User
FRC #4192
 
Join Date: Oct 2017
Location: Flower Mound, TX
Posts: 9
Zeeman is on a distinguished road
Re: Connect Xbox Controller Directly to Roborio

In your post you seemed worried about latency using wireless controllers. Let me assure you, most modern wireless game controllers have nearly nonexistent latency. Our team has used the official Microsoft Xbox One Wireless Adapter for PC (Link) with multiple wireless Xbox One controllers for driver practice and outreach events and have had zero issues. None of our drivers could detect any latency changes between a direct connection and the wireless adapter. Programming a solution would definitely be a great project, but if all you're looking for is a way to control the robot away from the Driverstation, I highly recommend this route.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-17-2018, 09:31 PM
nickbrickmaster nickbrickmaster is offline
Registered User
AKA: Nick Schatz
no team (3184 Alum)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 453
nickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond repute
Re: Connect Xbox Controller Directly to Roborio

Quote:
Originally Posted by Crabcakes5 View Post
Oh wow, thanks! Do you know if there is another method for reading the gamepads using C++ instead of Java currently? Thanks again!
Gainput is referenced a few times in my quick google search. This says Xbox 360 control is okay, so you may be able to get around compliing xboxdrv, but if you're having issues that's the first thing I'd check.
__________________
Proceed as if success is inevitable.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:56 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi