Go to Post The robot is NOT a lie. - Rick TYler [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 30-01-2012, 23:25
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Joystick Hat

Does anyone know of a way to use the Joystick Hat as a regular button?
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2012, 01:33
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: Joystick Hat

I believe if you are at talking about the FOV hat on top of the joystick in this sort of fashsion...

http://imageshack.us/photo/my-images...ystick0mm.jpg/

They are normally the axis's 5 and 6 and typically only return -1,0,1 values. In order to make it a button function just take the output of the axis and compare it to see if it is greater than say '.99'. Or at least that's how they function on our Saitek Joysticks.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2012, 11:03
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Joystick Hat

Quote:
Originally Posted by Keyreaper View Post
I believe if you are at talking about the FOV hat on top of the joystick in this sort of fashsion...

http://imageshack.us/photo/my-images...ystick0mm.jpg/

They are normally the axis's 5 and 6 and typically only return -1,0,1 values. In order to make it a button function just take the output of the axis and compare it to see if it is greater than say '.99'. Or at least that's how they function on our Saitek Joysticks.
I'm not worried about returning values other than -1, 0, and 1. Thank you for your help. I was unaware that it was possible to read axes other than X and Y but I've just noticed that you can getRawAxis.
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 22:22.

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