|
Page 1 of 1
|
[ 3 posts ] |
|
| Author |
Message |
|
frozenfire777
Rookie
Joined: Thu Apr 12, 2012 9:06 am Posts: 1
|
 I need help
Is there anyway that i could set nPgmTime to be 0 in the coding, ie: untilSonarLessThan(6.9,sonar); (insert code here)
|
| Thu Apr 12, 2012 9:09 am |
|
 |
|
magicode
Moderator
Joined: Tue Sep 14, 2010 9:19 pm Posts: 495
|
 Re: I need help
what are you tying to accomplish? What is "untilSonarLessThan(6.9,sonar);" supposed to do? If you need to use timing, I suggest you use timers instead of trying to change nPgmTime.
_________________ sudo rm -rf /
|
| Thu Apr 12, 2012 11:14 am |
|
 |
|
jbflot
Site Admin
Joined: Tue May 15, 2007 9:02 am Posts: 383
|
 Re: I need help
The nPgmTime value is designed to always say how long the current program has been running, and is therefore not user resettable. You will want to use the user-controllable timers, like magicode said: http://www.education.rec.ri.cmu.edu/products/teaching_robotc_cortex/reference/hp_timers.pdf
|
| Mon Apr 16, 2012 11:46 am |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|