|
Page 1 of 1
|
[ 5 posts ] |
|
Buttons 11 and 12 not working v1.46
| Author |
Message |
|
chadgeorge
Novice
Joined: Fri Oct 24, 2008 8:58 am Posts: 87
|
 Buttons 11 and 12 not working v1.46
I can't seem to get any response from buttons 11 & 12 (the thumbstick buttons) The Joystick Control panels shows them being pressed, but neither the tempBuffer or the joystick structures show any change to the btn variable. (looking at the debug / global variables)
Can anyone verify this? Does anyone have a solution. I'm hoping its a code issue and not that RobotC just isn't sending the value, but I can't see anything wrong.
|
| Thu Jan 15, 2009 5:40 pm |
|
 |
|
Sunny1261
Novice
Joined: Thu Oct 09, 2008 7:58 pm Posts: 79
|
 Re: Buttons 11 and 12 not working v1.46
It might help if you post the code.
|
| Thu Jan 15, 2009 10:53 pm |
|
 |
|
chadgeorge
Novice
Joined: Fri Oct 24, 2008 8:58 am Posts: 87
|
 Re: Buttons 11 and 12 not working v1.46
sorry maybe i wasn't clear. There is no code to post. Its not a programming issue at all.
The RobotC debugger / joystick control panel doesn't seem to be sending the status of Buttons 11 and 12 to the robot. Watching the joystick.btn variable (in the global variables debug window) while the program is running... Buttons 1-10 indicate being pressed but nothing for 11 and 12.
Can anyone verify this behavior? Does anyone have buttons 11 and 12 working?
|
| Fri Jan 16, 2009 2:43 pm |
|
 |
|
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 537
|
 Re: Buttons 11 and 12 not working v1.46
There is no "visual" indication of the button being pressed... but if you look at the bottom of the "Primary Joystick", the numbers 10 and 11 appear, signifying button11 and button12 (index starts at 0...)
I believe only buttons 1-10 are sent from the Field Management System during competition. The data returned at the bottom of the joystick control window is the raw data from the directX input driver. I could be wrong, I'll look into it.
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
| Fri Jan 16, 2009 5:53 pm |
|
 |
|
chadgeorge
Novice
Joined: Fri Oct 24, 2008 8:58 am Posts: 87
|
 Re: Buttons 11 and 12 not working v1.46
Yes, I saw the indicator on the bottom changes so I assumed that it was available at the robot side (and that the comments in the joystick driver says that it is).
But I agree with you I don't think its not making it out of the FMS though. I'm curious why not...
|
| Sun Jan 18, 2009 5:42 pm |
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|