Go to Post And we had to walk both ways to the venue from our hotel! Uphill! Barefoot over broken glass! - IMDWalrus [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 02-04-2012, 01:17
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 02-04-2012, 09:37
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: 9,113
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
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 02-04-2012, 10:34
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: 284
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 02-04-2012, 16:16
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,080
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: 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.
__________________
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
  #5   Spotlight this post!  
Unread 03-04-2012, 16:34
Alexander Meyer Alexander Meyer is offline
Registered User
FRC #2358 (Bearbotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Lake Zurich, Illinois
Posts: 36
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 03:00.

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