To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 764
763  |  765
Subject: 
Re: newbie questions...
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Tue, 12 Sep 2000 08:42:42 GMT
Viewed: 
2039 times
  
On Tue, 12 Sep 2000 02:27:41 GMT,
Dave Baum <dbaum@spambgoneenteract.com> wrote:

Ok, so the 'if ( ActiveEvents(10) & EVENT_MASK(0) )' is the
correct syntax to check if event 0 was triggered ?


yes

Thanks.

Or a function that returns the current task number ?


That's pretty tough to implement.
[...]

I see...

Anyway, there shouldn't be a great need to monitor the same
event in different tasks, so it's not that important...

Let's give LEGO the time to add this in the firmware then :)

(1) they really do listen!

Great!

Stelian.

--
Stelian Pop <stelian.pop@alcove.fr>



Message is in Reply To:
  Re: newbie questions...
 
(...) yes (...) That's pretty tough to implement. Code in the tasks is easy...the task number is a constant. Same for subs that are only called from one task. Inline functions are also easy...provided they are called from one of the above. The (...) (24 years ago, 12-Sep-00, to lugnet.robotics.rcx.nqc)

5 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR