|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Test Code
What did it do instead of what you expected?
|
|
#2
|
|||
|
|||
|
Re: Test Code
If you use the teleop or autonomous, the code executes once, because it is not in a loop. By running robot main, the code sits in the actual game code loop.
By pressing the play button, it only disables the startup code, and runs your code in its ram, so when you restart the robot, the code disappears, and no harm is done. |
|
#3
|
||||
|
||||
|
Re: Test Code
Try to have the "Projectexplorer" and robot main open. Then run it. It should work
|
|
#4
|
||||
|
||||
|
Re: Test Code
thank you so much!!! i was using teleop (which is why it wouldn't work). i tried to run continuosly, but since none of the refnames were set, it didn't know what to do. thanks again!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|