Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Non joystick control? (http://www.chiefdelphi.com/forums/showthread.php?t=98974)

shuhao 21-12-2011 13:22

Non joystick control?
 
is it possible to use keyboard to drive? We have some parts but no joystick at the moment.

Mark McLeod 21-12-2011 13:32

Re: Non joystick control?
 
Can't use a keyboard, but you could use most USB game controllers if you have one from home you could borrow.

It's possible to rig up custom controls through the Cypress board, but doubtfully worth the trouble.

Autonomous could be run without joysticks, but not controlled by a driver.

Aren Siekmeier 21-12-2011 14:55

Re: Non joystick control?
 
Has anyone ever played around enough to see (or just knows) if the driver station/FMS framework could support sending keyboard info/events to the robot, such as by modifying (or writing a new one from scratch) the driver station runtime? I assume that as soon as the driver station software is modified its no longer legal, but just curious.

WizenedEE 21-12-2011 15:15

Re: Non joystick control?
 
Quote:

Originally Posted by compwiztobe (Post 1092852)
Has anyone ever played around enough to see (or just knows) if the driver station/FMS framework could support sending keyboard info/events to the robot, such as by modifying (or writing a new one from scratch) the driver station runtime? I assume that as soon as the driver station software is modified its no longer legal, but just curious.

The drive station isn't open source. I think there have been some open source, team generated duplicates of it that could accomplish that, but it would be easier to write the code on the dashboard to use a free port to send the data.

Sunstroke 21-12-2011 23:34

Re: Non joystick control?
 
Quote:

Originally Posted by compwiztobe (Post 1092852)
Has anyone ever played around enough to see (or just knows) if the driver station/FMS framework could support sending keyboard info/events to the robot, such as by modifying (or writing a new one from scratch) the driver station runtime? I assume that as soon as the driver station software is modified its no longer legal, but just curious.

The new SmartDashboard will support extensions. As long as it does not break any explicit rules (none that I know of), it will be possible to create a custom widget which reads keyboard values and sends it back to the robot using the new NetworkTable protocol. All in all, that means approximately 20 lines of code (besides the boiler-plate class definition), and a few on the robot depending on what control you want.

RyanCahoon 22-12-2011 00:54

Re: Non joystick control?
 
Quote:

Originally Posted by RyanCahoon (Post 1044625)
This software that allows mapping of keystrokes to a virtual joystick device.

Works great with modular USB numpads.

--Ryan

Aren Siekmeier 22-12-2011 23:44

Re: Non joystick control?
 
Quote:

Originally Posted by RyanCahoon (Post 1093019)
Works great with modular USB numpads.

--Ryan

That's a neat way to do it. Unfortunately, that particular one is an unsigned driver or some such thing so 64 bit Windows is unhappy with it. On further Googling I found this which appears to have the same functionality and at the very least installs successfully on 64 bit Windows. No guarantees about it working yet, as I don't have a robot or any games to test it on.


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

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