Go to Post when all else fails, try making the bot go slower - KenWittlief [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 08-01-2015, 18:54
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Joystick GetRawButton not working

What do the button indicators do on the DS USB tab? What do they do in the Windows Joystick/Gamepad properties?
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2015, 19:31
nick818 nick818 is offline
Registered User
AKA: Nicholas Currault
FRC #2840 (Blue Tide)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Paradise Valley, AZ
Posts: 6
nick818 is an unknown quantity at this point
Re: Joystick GetRawButton not working

Quote:
Originally Posted by RufflesRidge View Post
What do the button indicators do on the DS USB tab? What do they do in the Windows Joystick/Gamepad properties?
They light up when the button is pressed.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2015, 14:37
Domo Arigato Domo Arigato is offline
Registered User
no team
 
Join Date: Jan 2015
Location: New Fork, New York
Posts: 1
Domo Arigato is an unknown quantity at this point
Re: Joystick GetRawButton not working

Is anyone else having this issue?
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2015, 21:26
kbocheltree kbocheltree is offline
Registered User
FRC #4122
 
Join Date: Oct 2012
Location: Ossining, NY
Posts: 7
kbocheltree is an unknown quantity at this point
Re: Joystick GetRawButton not working

We are using Logitech ATK3 Joysticks and are having problems seeing the GetRawButtons in the code. We pulled code we used last year for handling the buttons and it is not working now. GetX, GetY and GetZ all work, but am not seeing the GetRawButtons.

Am writing debug code tonight to see what is happening.

Last edited by kbocheltree : 26-01-2015 at 21:30.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2015, 19:33
kbocheltree kbocheltree is offline
Registered User
FRC #4122
 
Join Date: Oct 2012
Location: Ossining, NY
Posts: 7
kbocheltree is an unknown quantity at this point
Re: Joystick GetRawButton not working

Added debug statements and problem was with other section of code. Added code to show button presses on SmartDashBoard. So GetRawButton is working fine for Logitech ATK3 controller.
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2015, 17:57
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Joystick GetRawButton not working

Thanks for updating the thread with results!
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2015, 21:29
sau sau is offline
Registered User
FRC #2220 (Blue Twilight)
Team Role: Programmer
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Eagan
Posts: 8
sau is an unknown quantity at this point
Re: Joystick GetRawButton not working

YES!!!! Our team is also having problems with programming our Saitek X52. We have tried for the last two weeks to get our joystick to work. getRawAxis() works fine, but getRawButton() does not. We have not tried getRawTrigger(). We have also tried DriverStation.getInstance(), and we can pull the axis value directly from the driverstation, but are not able to with the buttons.

Our driver station does seem to recognize the buttons being pressed, as they light up when pressed, but they always return either a true or a false boolean.

We have tried the (more or less) same code with our Xbox controllers, and the buttons do work. Maybe it is just impossible to use the X52's?
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: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