Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Custom Robot Controller (http://www.chiefdelphi.com/forums/showthread.php?t=118948)

The Numenorean 04-09-2013 20:50

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!

ekapalka 04-09-2013 22:44

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 ).

The Numenorean 05-09-2013 23:57

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

fovea1959 15-09-2013 10:11

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....


All times are GMT -5. The time now is 22:33.

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