|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
arm loop stops drive
i am having the problem of the arm while loop stoping the drive
http://i1093.photobucket.com/albums/...6/Untitled.png that is what i have and when you push the button to move the wrist it stops everything Last edited by jacob9706 : 12-04-2011 at 20:26. |
|
#2
|
|||||
|
|||||
|
Re: arm loop stops drive
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. Last edited by Mark McLeod : 12-04-2011 at 21:29. |
|
#3
|
|||
|
|||
|
Re: arm loop stops drive
thank you very much. will take what you said and apply to my code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|