|
Re: Code and Deployment Help
I'm assuming that you are using netbeans, and that all your constants/fields are correct. I can't really diagnose problems from here without seeing your setup.
The only issue I see in your code is that your teleopPeriodic might never get called, because of your infinite loop in your teleopInit. I would suggest moving just your driving code (not the loop) to your teleopPeriodic. For future reference, avoid loops unless they are escapable.
As for deploying, make sure your computer can communicate with your cRIO (ping it), and then push the "green arrow" or push "F6" or go to the "run" menu and select "run main project".
Good Luck!
|