Go to Post Would FIRST be as amazing if not for CD? I mean it would still be this amazing place for students and mentors to be but the explosion of innovation and gathering of people together across communities has to have been greatly effected by CD. - dodar [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 08-01-2014, 22:05
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Keypad instead of joystick?

Hello all!
I've been thinking about using a keypad instead of a joystick for our secondary driver, as he normally has a lot of mechanisms to keep track of and hardly ever seems to use the stick part of the joystick.

My question is thus: Does anyone have experience programming third party keypads? This may sound crazy noob, but can you honestly just plug up some logitech keypad and all the functions are the same (GetRawButton, etc.,) or are there other libraries that are going to have to be downloaded, and if so do you guys have any recommendations for good/easy to program keypads?

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2014, 23:47
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,188
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
Re: Keypad instead of joystick?

You could use an IO module to build a custom keypad (or interface to the raw input from an existing keypad).

In your code you would treat it just like a joystick, but you can physically configure the buttons any way you want to.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2014, 07:30
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: Keypad instead of joystick?

whoa, thats awesome :O I'd never seen that before! thanks so much!
Reply With Quote
  #4   Spotlight this post!  
Unread 09-01-2014, 07:47
Zuelu562's Avatar
Zuelu562 Zuelu562 is offline
Ready for WPI District!
AKA: Jake Janssens
FRC #3623 (Terror Bots)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Massachusetts
Posts: 340
Zuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to beholdZuelu562 is a splendid one to behold
Re: Keypad instead of joystick?

Sparky, this is something I've dealt with in the past, starting with a PS2 Controller and eventually the XBox controller. In practice, you can use getRawButton (and getRawAxis) to slowly figure out what is what on the pad. Either output it directly to the DS User Messages or put it to the dashboard to make it really easy. I think you'd know, but just for reference, make sure you don't have any commands tied to the buttons/axes you are trying to discover and understand!

If you really need to get it done and have no time for a handbuilt joy pad, this is a solution.
__________________
Team Resume
562 "S.P.A.R.K." - Student Programmer 2008-2011, Field Coach 2011
3623 "Terror Bots" - Technical Mentor, Field Coach 2012 - Present

Volunteer Resume:
BattleCry@WPI 12, 13, 15, 16 - Queuing
BattleCry@WPI 14 - Field Reset
Granite State District Event 2014 - Team Queueing
NEFIRST District Championships '14,'15,'16 - Team Queuing
Reply With Quote
  #5   Spotlight this post!  
Unread 09-01-2014, 08:07
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: Keypad instead of joystick?

yeah that would be pretty bad! Well that was why i was considering this now, so that we'd have all build season and the end of february and early march cause we're a week 4. I'd never heard of a custom keypad, that sounds like a really neat idea. that CCI control looks sweet.
Reply With Quote
  #6   Spotlight this post!  
Unread 09-01-2014, 14:16
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Keypad instead of joystick?

Quote:
Originally Posted by Zuelu562 View Post
In practice, you can use getRawButton (and getRawAxis) to slowly figure out what is what on the pad. Either output it directly to the DS User Messages or put it to the dashboard to make it really easy.
There's a new tool for doing this on the driver station. See http://wpilib.screenstepslive.com/s/...3053-joysticks and scroll down to Determining Joystick Mapping
Reply With Quote
  #7   Spotlight this post!  
Unread 09-01-2014, 16:29
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Keypad instead of joystick?

Joe - thanks for pointed that tool out.
Brian
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #8   Spotlight this post!  
Unread 09-01-2014, 10:20
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: Keypad instead of joystick?

Quote:
Originally Posted by PAR_WIG1350 View Post
You could use an IO module to build a custom keypad (or interface to the raw input from an existing keypad).

In your code you would treat it just like a joystick, but you can physically configure the buttons any way you want to.
The TI LaunchPad in FIRST Choice can also be used as an input module. After loading some new firmware, you can use the LaunchPad alone or with the Breakout BoosterPack (available very soon) as a set of two plug-n-play gamepads. Each gamepad has 11 digital and 4 analog inputs (22 and 8 in total).

Check out this link for more information: Using the Stellaris or Tiva LaunchPad in the FIRST Robotics Competition

I also have a CD thread that will be updated once the BoosterPack is ready to order.

-David
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 12:04.

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