Go to Post "FIRST: We take young human beings, born in captivity, educate them in science and technology, and re-release them into the wild." - kmcclary [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 21-12-2011, 13:22
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Non joystick control?

is it possible to use keyboard to drive? We have some parts but no joystick at the moment.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-12-2011, 13:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 21-12-2011, 14:55
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-12-2011, 15:15
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Non joystick control?

Quote:
Originally Posted by compwiztobe View Post
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-12-2011, 23:34
Sunstroke Sunstroke is offline
Programmer
AKA: Joe Grinstead
FRC #3504 (Girls of Steel)
Team Role: Mentor
 
Join Date: Apr 2009
Rookie Year: 2009
Location: New England
Posts: 49
Sunstroke is an unknown quantity at this point
Re: Non joystick control?

Quote:
Originally Posted by compwiztobe View Post
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-12-2011, 00:54
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Non joystick control?

Quote:
Originally Posted by RyanCahoon View Post
This software that allows mapping of keystrokes to a virtual joystick device.
Works great with modular USB numpads.

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor

Last edited by RyanCahoon : 22-12-2011 at 01:05. Reason: Removed AutoHotkey link. I think it might only work for Joystick->keyboard, not the other way
Reply With Quote
  #7   Spotlight this post!  
Unread 22-12-2011, 23:44
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: Non joystick control?

Quote:
Originally Posted by RyanCahoon View Post
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.
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 11: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