Go to Post These people however realize WHEN to screw around and have fun, and when to be serious and have fun. - Enigma's puzzle [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 13-01-2013, 19:31
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: XBox controller

Does anyone happen to know the button mapping for the Logitech Gamepad F310 and/or Logitech Attack3 joystick? Is the gamepad mapping the same as the xBox controller? We'll be using the Attack3 joysticks until we order some sort of gamepad, probably the Logitech F310 gamepad, based on F22Rapture's testimony. Thanks!
Reply With Quote
  #17   Spotlight this post!  
Unread 13-01-2013, 19:34
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: XBox controller

Windows has a tool that shows you the state of any joystick you have plugged in (ie, what axis are where, what buttons are pressed). You can find it under control panel > Devices. Look for "Set up Game controllers", then press advanced on whichever connected game controller you want to inspect.
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote
  #18   Spotlight this post!  
Unread 13-01-2013, 21:17
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: XBox controller

Quote:
Originally Posted by ekapalka View Post
Does anyone happen to know the button mapping for the Logitech Gamepad F310 and/or Logitech Attack3 joystick? Is the gamepad mapping the same as the xBox controller? We'll be using the Attack3 joysticks until we order some sort of gamepad, probably the Logitech F310 gamepad, based on F22Rapture's testimony. Thanks!
Not sure on the F310 (see nightpool's post), but the Attack3 is something like this:


Code:
   //Axis Indexes
    public static final int
            X_AXIS = 1,
            Y_AXIS = 2,
            THROTTLE = 3;
    
    //Buttons
    public static final int
            //Buttons on joystick
            TRIGGER = 1,
            //POV buttons on head of stick
            BUTTON_SOUTH = 2,
            BUTTON_NORTH = 3,
            BUTTON_WEST = 4,
            BUTTON_EAST = 5,
            //Pair of buttons left of stick
            BUTTON_BASE_WNW = 6,
            BUTTON_BASE_WSW = 7,
            //Pair of buttons below stick
            BUTTON_BASE_SSW = 8,
            BUTTON_BASE_SSE = 9,
            //Pair of buttons right of stick
            BUTTON_BASE_ESE = 10,
            BUTTON_BASE_ENE = 11;
I don't have one on me, so I'd appreciate it if someone could confirm.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #19   Spotlight this post!  
Unread 14-01-2013, 00:22
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,073
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: XBox controller

Quote:
Originally Posted by F22Rapture View Post
I don't have one on me, so I'd appreciate it if someone could confirm.
The Attack3's buttons are numbered on the controller and they do correspond correctly in software.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

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

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