Go to Post If you think life is fair, you are sadly mistaken. - R.C. [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 04-09-2013, 20:50
The Numenorean The Numenorean is offline
Registered User
FRC #2984 (The Vikings)
Team Role: Programmer
 
Join Date: Sep 2013
Rookie Year: 2008
Location: San Diego
Posts: 4
The Numenorean is an unknown quantity at this point
Custom Robot Controller

Hi,

I want to use a program to send data to a robot as if it was a joystick plugged into the computer. The program would be running on the computer that the Driver Station is, so it should be able to be sent throough the connection. In essence, I don't want to change the robot code at all, just change the joystick the driver station is using to be my custom one. Read: No hardware.

Java would be optimal, but if necessary I can do it in a other language.

Anyone know how to do this?

Thank you!

Last edited by The Numenorean : 04-09-2013 at 21:34.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-09-2013, 22:44
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: Custom Robot Controller

That sounds like Network Tables to me :) Check out the information here. You would get the input from your custom controller in the desktop side and send it to the robot side. I think most people use a Teensy USB development board or a USB IFI Chicklet in the construction of their custom controllers (verify this?). I'm pretty sure this is almost but not quite the answer to your question. (You might want it to literally show up as a joystick, plug and play, so you could simply use the Joystick classes in the WPI library. If so, I'm also looking for a way to do this :P ).

Last edited by ekapalka : 04-09-2013 at 22:57.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-09-2013, 23:57
The Numenorean The Numenorean is offline
Registered User
FRC #2984 (The Vikings)
Team Role: Programmer
 
Join Date: Sep 2013
Rookie Year: 2008
Location: San Diego
Posts: 4
The Numenorean is an unknown quantity at this point
Re: Custom Robot Controller

You are right about that not being quite what I want, but I have a feeling it is very complex, will pass it on if I find a way though
Thanks for the tip about NetworkTables though, they may be just good enough to work, am trying now
Reply With Quote
  #4   Spotlight this post!  
Unread 15-09-2013, 10:11
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Custom Robot Controller

another possiility, look at Virtual Joystick. Defines a virtual joystick on the driver station that you can manipulate from other programs running on the driver station. http://vjoystick.sourceforge.net/site/

not as easy as network tables, though....
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 22:33.

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


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