![]() |
Running Code Problems
2 Attachment(s)
My team and I have had a lot of problems trying to get the code to run on our cRIO for our robot. Our robot is finished and testing is complete, but when we put all of the system together into one Java 'project' with a main.java class, we run into major problems. We're using a very basic main.java class with just what seems is needed. Our CommandBase class seems to be correct, although I will link it anyways. I sadly do not have the error report with me, but I will attach both the Main and CommandBase classes. Help or tips would be much appreciated in any form! Thank you! ~T
|
Re: Running Code Problems
Your Main isn't actually implementing the IterativeRobot methods. IterativeRobot has methods like robotInit(), teleopInit(), autonomousPeriodic(), not the methods of Command. The Command-based template gives a good example IterativeRobot implementation.
|
Re: Running Code Problems
1 Attachment(s)
Would this be the proper format? Or would the Iterative.teleopInt() be moved to the execute() method and the teleopPeriodic() be moved to interrupted()? Thanks! (I'm new to this sorry)
|
Re: Running Code Problems
You're still treating IterativeRobot like a Command. The default command-based template provides this:
Code:
/*----------------------------------------------------------------------------*/ |
Re: Running Code Problems
+1^^. You have to override those functions manually.
Alex Brinister |
| All times are GMT -5. The time now is 22:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi