| | How to user MONITOR command for watching TIMER in Spybotics
|
| Dear Members, I managed to use NQC MONITOR command to watch TIMERs in my SCOUT using the predefined SCOUT events (EVENT_TIMER_0). However, I failed with my Spybotics and RCX 2.0. My question is how can I use the MONITOR command to watch TIMERs (or (...) (21 years ago, 10-Jul-03, to lugnet.robotics.rcx.nqc)
| | | | Re: How to user MONITOR command for watching TIMER in Spybotics
|
| This program below shows how a timer event can be used. Dave Baum ---- #define MY_EVENT 0 task main() { ClearTimer(0); SetEvent(MY_EVENT, Timer(0), EVENT_TYPE_HIGH); SetUpperLimit(MY_EVENT, 1000); monitor(EVENT_MASK(MY_EVENT)) { while(true) { (...) (21 years ago, 12-Jul-03, to lugnet.robotics.rcx.nqc)
| | | | Re: How to user MONITOR command for watching TIMER in Spybotics
|
| Dear Dave, Thank you for your reply. In fact, for several nights I was using very similar snippet you provided to watch the timer before posting my problem, however, I was careless to spell the Timer(0) with TIMER(0) and the compiler always (...) (21 years ago, 13-Jul-03, to lugnet.robotics.rcx.nqc)
| |