Go to Post (puts on his asbestos underwear, because these threads always get heated) - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > WindRiver C++
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
Innovation First International, Inc.
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
New Springfield Missionary Baptist Church
ADVERTISEMENT

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2012, 12:17 AM
swapnil94 swapnil94 is offline
Registered User
FRC #2935
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Toronto, Ontario
Posts: 19
swapnil94 is an unknown quantity at this point
logitech f310 d-pad

Is d-pad for logitech f310 programmed as a joystick or buttons? In the c++ reference I can't find anything that be used to program d-pad.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2012, 08:37 AM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 7,051
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Send a message via AIM to Alan Anderson
Re: logitech f310 d-pad

I think the simplest way to find out what axis and button numbers correspond to the controls on a joystick or gamepad is to hook it up and see what you get. In LabVIEW, it's as easy as creating an indicator on the Axes and Buttons outputs of the Joystick Get vi. In C++, you'll want code to continuously display all the axis and button values.

In my experience, the d-pad typically shows up on joystick axes 5 and 6.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2012, 09:34 AM
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 207
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: logitech f310 d-pad

It may fall under the same umbrella as the POV hat on most flight stick style joysticks; however, I don't know if the Joystick class has the POV hat, since we don't use ours
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2012, 03:16 PM
cgmv123's Avatar
cgmv123 cgmv123 is offline
Professional Peon
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: Electrical
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 604
cgmv123 is a splendid one to beholdcgmv123 is a splendid one to beholdcgmv123 is a splendid one to beholdcgmv123 is a splendid one to beholdcgmv123 is a splendid one to beholdcgmv123 is a splendid one to beholdcgmv123 is a splendid one to behold
Re: logitech f310 d-pad

Quote:
Originally Posted by DjScribbles View Post
I don't know if the Joystick class has the POV hat, since we don't use ours
It doesn't, but our XBox controllers read the point of view hat as a single axis with 3 values, -1.0, 0, 1.0. It's only vertical, no horizontal.
__________________
I don't get it. We followed all the instructions exactly. Why doesn't it work?
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2013 FIRST Championship Curie Division (#breakthecurse)

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), Semi-Finalist (1732/1714)
2011 Wisconsin Regional Innovation in Control Award
Reply With Quote
  #5   Spotlight this post!  
Unread 04-03-2012, 03:34 PM
Alexander Meyer Alexander Meyer is offline
Registered User
FRC #2358 (Bearbotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Lake Zurich, Illinois
Posts: 35
Alexander Meyer is on a distinguished road
Re: logitech f310 d-pad

Quote:
Originally Posted by Alan Anderson View Post
In my experience, the d-pad typically shows up on joystick axes 5 and 6.
This is how the F310 behaves as well.
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 06:57 AM.

The Chief Delphi Forums are sponsored by Innovation First, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School