![]() |
Joystick in Autonomous
Ignoring the fact that this is against the rules, if one were to program autonomous to take joystick input and the driver touched the joystick during autonomous, would the input be seen by the robot code? Or is that somehow locked out automatically?
|
Re: Joystick in Autonomous
Nope.
The code only sees the last values sent in the last packet before Autonomous started. That packet info is ignored by the communications task during Autonomous. |
Re: Joystick in Autonomous
Quote:
|
Re: Joystick in Autonomous
Yes, the Kinect gets through because it was originally setup to be used to direct the robot during Autonomous.
|
Re: Joystick in Autonomous
But we have the code for the communications task, right? So if you wanted to, you could let the joystick value through.
|
Re: Joystick in Autonomous
Quote:
|
Re: Joystick in Autonomous
Quote:
|
Re: Joystick in Autonomous
If joystick commands aren't sent during auto, is there a reason that the drivers have to stand back from the controls?
|
Re: Joystick in Autonomous
During Autonomous commands from the Driver Station can be sent other ways than the joysticks.
So keep back :) Then there's that Kinect thingy... |
Re: Joystick in Autonomous
@Mark, or anyone
If you set one of the axes before the match (say the "throttle" which doesn't have a centering spring), would autonomous be able to read that value? |
Re: Joystick in Autonomous
Quote:
|
Re: Joystick in Autonomous
I don't know, but I suspect there isn't code to prevent the joystick from being read. SmartDashBoard definitely is read and it seems unlikely they would introduce code to prevent other devices from being read.
You could try it as an experiment. There is a "practice" mode on the driver station that simulates a match of autonomous followed by regular. You could touch the joystick during the first 10 seconds of "practice" mode and see what happens. If you do try it, post back here so we all know! |
| All times are GMT -5. The time now is 07:08. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi