View Single Post
  #1   Spotlight this post!  
Unread 12-02-2015, 00:37
Cyborg Mustang's Avatar
Cyborg Mustang Cyborg Mustang is offline
Registered User
FRC #2647
 
Join Date: Oct 2013
Location: Phoeniz, AZ
Posts: 18
Cyborg Mustang is an unknown quantity at this point
Exclamation Joystick Axis Problem: axis input is not being recognized

Hello there. I am writing on behalf of the programming/control team of Team 2647 Cyborg Mustangs.

Our team programs in Java and we use a Logitech Gamepad to control our bot. We were able to get our 2-motor drive train and 1-CIM elevator mechanism up and running yesterday. We mapped the elevator motor control to the digital triggers on the controller (left = -1, right = 1, and neither = 0, with speed control that adjusts the inputs by a selected fraction) and we mapped axis 1 and axis 3 (the left stick and right stick in forward and backward motion) to each motor in a tank drive setup, with an optional toggle for arcade drive mapped to the start button.

Today, however, the drive train was not functioning properly. Strangely enough, when we mapped the digital triggers to the drive train motors instead of the analog sticks, we were able to drive the robot just fine. After further testing, it turned out that only the digital buttons were able to control the bot, while all of the axes were not able to control anything whatsoever. We tested this with both the Logitech Gamepad and the Logitech Extreme 3D Joystick, which yielded the same results. We also tested the bot through USB and WiFi connection to the roboRIO, but neither seemed to have any effect.

While looking into the problem, we discovered that the FRC Dashboard recognized the controller and all axes and buttons but we were not able to use the axes when controlling the robot for some reason. Our programmer created a new control scheme that used only the digital buttons on the gamepad, but we are still concerned as to why we are not able to utilize the axes of any joystick.

I cannot post the code currently because I am not in the shop, but I will be sure to once I am back in the shop. Regardless, even with a default SampleRobot project with tank drive setup, the axes were still not able to control the drive train.

While it is not crucial to our robot this competition, any help is appreciated so that we can ensure our success in future competitions. Thank you all in advance, and Happy FIRSTing.
__________________
Cyborg Mustangs Team 2647
North High School
Phoenix, AZ

Last edited by Cyborg Mustang : 12-02-2015 at 00:41. Reason: Additional Information
Reply With Quote