![]() |
Autonomous Code Troubleshooting
An issue that I am currently having trouble with Autonomous is that it only performs the code once. For example if it hit enable, the code will run perfectly however once I Disable it and hit Enable again, the code will not run.
Here is the portion of code that is in question. Code:
public class Robot extends IterativeRobot {Code:
package org.usfirst.frc.team3647.robot;Thanks! |
Re: Autonomous Code Troubleshooting
The problem with your code right now is that your move variable is set to true in robotInit but nowhere else. Since robotInit is only called when the roboRio first boots up, your auto code will only run once.
The fix that requires the least changes would probably be to put Auto.move=true into autonomousInit instead of robotInit. However, this may not be the smartest way to go depending on what else your code is doing. |
| All times are GMT -5. The time now is 10:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi