So we made a Project with Game Code and added our personal TeleOp code into the designated file. When we try our teleop without uploading the whole project as startup, it works.
However, when I Build the project and Run As Startup and the crio Reboots, only one part of the teleop works. We have compressor code and drive code with two motors plus the pneumatics. When we Run As Startup, our compressor turns on, reaches the limit and stops but we cant control the joystick at all. the error file says that the code is not getting the robotodrive loop. So, I made two while loop with pneumatics and compressor in one and the robotdrive in the other, however it still does not work… Can you help?
Check to make sure that the Watchdog is either Disabled, or that the Watchdog is being “fed” in the while loops… Also check to make sure that the While loops don’t have too long of a wait delay… This could be activating the Safety Config feature on the motors. Posting a screenshot would be nice.
I will upload a screenshot of my TeleOp vi as soon as possible (most likely tomorrow morning) but till then, I should let you know I have two while loops. I’ll update the info tomorrow.
I just read that but my whole teleop code is two while loops, if i place them in the Periodic tasks, do I just leave my teleop code empty (No drive either?) ?