|
Re: IsAutonomous() function
My first guess would be that "IsAutonomous()" asks the robot if it is still in the autonomous status. Can you tell me what the status of the driver station is? If you are even connected?
I'll get back to you, after double checking the WPILib documentation. But it might be a little bit, so here is my advice. Figure out what IsAutonomous() does.
My guess is that it looks at the driver station and if it driver station is enabled and in autonomous mode, then the IsAutonomous() will continue and if the driver station is not in autnomous then IsAutonomous() breaks the loop in which it is called.
Check the WPILib documentation, there should be something about IsAutonomous() in there.
Good Luck,
Sravan
__________________
I am an employee of FIRST. However, the postings on this site are of my own perspective as a FIRST mentor and volunteer and do not necessarily reflect the views of FIRST.
FIRST Team 5125 Hawks on the Horizon Lead Mentor
FRC Team 4096 Ctrl-Z Former Mentor
FTC Team 5203 #19@! Former Mentor
FRC Team 1403 Cougar Robotics Alumni
|