 |
| New User |
Joined: Tue Sep 14, 2010 8:55 am Posts: 2
|
|
;turns on light for 4 seconds
Using an Atompro ARC32 I am working on a project where a submarine has to follow different headings for different amounts of time. I have been using hservotime to accomplish this but I don't believe it can be set to zero and I am afraid if the clock resets, my timing would be wrong.
Is there a way to reset the clock or is there a better way to run a timer. Below is what I have been using
enablehservo2
starttime var long stoptime var long leg var long time con 4
main leg = time *20000000 high p44 starttime = hservotime 0 ;get current time do stoptime = (hservotime 0)-starttime while stoptime < leg
low p44
|
|