|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Auto won't run
Your drive motors are being commanded only once. Things will work better if you add a While around the drive code, with a Wait of 10 or 20 ms to keep the loop from eating up all the CPU time.
The Gyro Get Angle will have to be duplicated inside the loop for the 90 degree turn. (You can't communicate time-varying values into or out of a loop; they take their inputs once when the loop first begins, and produce an output once the loop finally finishes.) |
|
#2
|
||||
|
||||
|
Re: Auto won't run
Quote:
I have another problem, if its not a bother: ![]() After the pistons clamp, it doesn't move to the next part of the flat sequence structure. Can anyone spot the problem? I've been looking at it for the past hour. |
|
#3
|
|||||
|
|||||
|
Re: Auto won't run
Quote:
(I suggest that you move the frame labels from above the flat sequence to actually inside the frames they are labeling. That way they will stay connected to the code they are describing if you ever rearrange things.) |
|
#4
|
|||
|
|||
|
Re: Auto won't run
Here is the example code. Let me know if you have any questions.
|
|
#5
|
|||
|
|||
|
Re: Auto won't run
How do I attach a zip file?
|
|
#6
|
|||
|
|||
|
Re: Auto won't run
Another try at it.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|