Log in

View Full Version : Custom Robot Controller


The Numenorean
04-09-2013, 20:50
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!

ekapalka
04-09-2013, 22:44
That sounds like Network Tables to me :) Check out the information here (http://wpilib.screenstepslive.com/s/3120/m/7912/l/80205-writing-a-simple-networktables-program-in-c-and-java-with-a-java-client-pc-side). 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 ).

The Numenorean
05-09-2013, 23:57
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

fovea1959
15-09-2013, 10:11
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....