View Full Version : arm loop stops drive
jacob9706
12-04-2011, 20:16
i am having the problem of the arm while loop stoping the drive
http://i1093.photobucket.com/albums/i439/jacob9706/Untitled.png
that is what i have and when you push the button to move the wrist it stops everything
Mark McLeod
12-04-2011, 21:26
You cannot have a delay loop inside the Teleop.vi.
Teleop must execute quickly and be free to leave, because it must service 50 packets a second from the Driver Station.
If you stop it, then it won't be able to react to new driver commands.
Your delay code would work better in Periodic Tasks.vi
It can pretty much be moved, as is.
Also, your While loops must have a time delay added to each of them. Otherwise, they will run at max speed and suck all the life out of your cRIO and nothing will work very well.
jacob9706
12-04-2011, 22:34
thank you very much. will take what you said and apply to my code.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.