Go to Post Leave it to CD to misconstrue a joke this badly. - connor.worley [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 12-01-2011, 21:07
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programming Logitech Gamepad F310

Now, I might be very wrong, so remember to put the robot on cinder blocks or something so it does not go haywire and dangerous. A safe way is just outputting the throttle and z on the console window using System.out.println();
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2011, 21:12
ksanger's Avatar
ksanger ksanger is offline
Registered User
FRC #0211 (MaK)
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Rochester NY
Posts: 62
ksanger is on a distinguished road
Re: Programming Logitech Gamepad F310

Thanks for this thread. I assume this means that If our driver station is running on a Windows 7 laptop and Win7 sees the gamepad and loads the drivers then the wpilibj will see the controllers as a Joystick.? Or is it more like XP and we have to find and install a .dll for the gamepad we choose?
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2011, 21:30
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Programming Logitech Gamepad F310

Quote:
Originally Posted by ksanger View Post
Thanks for this thread. I assume this means that If our driver station is running on a Windows 7 laptop and Win7 sees the gamepad and loads the drivers then the wpilibj will see the controllers as a Joystick.? Or is it more like XP and we have to find and install a .dll for the gamepad we choose?
The Driverstation should identify the joystick if the computer has been able to find it. If it hasn't post here and I would be happy to assist you.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2011, 23:32
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: Programming Logitech Gamepad F310

I find it good to use the getRawAxis() command. It lets you use all four or five axis from a game controller (two for each stick, one for the triggers on the xbox 360 controllers my team used last year) easily, just by specifying the number, which is relatively easy to determine via trial and error.

EDIT: For buttons, I use getRawButton() in the same way (give it the number of the button). One issue I had was that the D pad wouldn't work, but I think thats because it is read as a 2D position, not a single axis, or something like that.

Last edited by JewishDan18 : 12-01-2011 at 23:35.
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 10:43.

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