![]() |
Updating Joysticks in a Command
I want to make a command that when hold a button it sets two motors speeds to the value of the throttle of a joystick(we're using the Logitech ATK3). I'm running into an issue where it doesn't like updating the value of the joystick when I hold the button(It crashes the robot and the driver station gives me the Robots don't quit message). When the command is constantly running there's no issue, but I would like it to not constantly run. I can make the command's parameters request a double and then in OI put in the joysticks throttle value there but it doesn't update after the init of the robot.
Any help is appreciated :] |
Re: Updating Joysticks in a Command
It's really hard to understand what's wrong if you don't post code.
|
Re: Updating Joysticks in a Command
Here's the GitHub page.
The code I'm talking about would be in these classes:
Code:
public class ShooterArcade extends Command { |
Re: Updating Joysticks in a Command
Quote:
Here is a good thread to read for a bit more: http://www.chiefdelphi.com/forums/sh...d.php?t=125671 |
Re: Updating Joysticks in a Command
Thanks for linking me to that thread, it really helped me out.:)
|
Re: Updating Joysticks in a Command
the other part of information that is helpful is the lines above "robots don't quit". Those lines tell people trying to help you where your code was when it had trouble.
|
| All times are GMT -5. The time now is 08:25 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi