![]() |
Robot getting disabled?
I just managed to deploy the code to the cRIO. For some reason, my sample code doesn't seems to be firing.
Code:
Code:
[cRIO] Default robotInit() method running, consider providing your ownAlso BTW how do I compile on linux and deploy on windows? (I'm fine with ant) |
Re: Robot getting disabled?
I don't see what the problem is - you didn't define the methods robotInit() or disabled(), so the default ones are used, which just print the messages you're seeing. From what I'm seeing, the robot shouldn't do anything until autonomous is enabled, and then it drive forward at half power for 8 seconds.
As for compiling on linux and deploying on windows, I believe that deploying simply entails FTPing onto the robot (which is simpler than it sounds, you just use windows explorer) and putting the correct file in the correct place. So, once you figure out the correct file, you can just copy that from linux to windows. |
Re: Robot getting disabled?
How would I enable autonomous mode?
|
Re: Robot getting disabled?
Once the code is loaded onto the robot, you start up the driver station, press the autonomous switch, then press enable.
Check out here for more info about how to "do" the control system. The "installing the driver station software on a non-classmate" may be helpful if you don't have it. This may also be helpful. |
Re: Robot getting disabled?
As a side note, I recommend making drive an instance variable so that it can be accessed from other methods as well.
|
Re: Robot getting disabled?
we usually use iterative mode, but isnt there supposed to be a main method that calls the mode? Making a guess here, being that its been a while since ive looked at simplerobot
|
| All times are GMT -5. The time now is 22:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi