To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Search Results: EVENT_MASK
 Results 1 – 20 of about 800.
Search took 0.00 CPU seconds. 

Messages:  Full | Brief | Compact
Sort:  Prefer Newer | Prefer Older | Best Match

  Re: signals / legOS internals
 
(...) I think you're missing the point. Now correct me if I'm wrong, Lou -- I believe the intent of the signal mechanism is to allow a way to specify a function to run when a system event occurs: e.g. a message arrives across the IR port. It is (...) (25 years ago, 24-Jun-99, to lugnet.robotics.rcx.legos)
 

event, mask
(score: 3.448)

  Re: NQC 2.x event processing
 
(...) Not really a stack problem, just a control flow issue. On suggestion for the event handling was something like this: begin_events(EVENT_MASK, event_handler); // put code that executes during event monitoring here end_events event_handler: // (...) (24 years ago, 10-Jun-00, to lugnet.robotics.rcx.nqc)
 

event, mask
(score: 3.342)

  newbie questions...
 
Hi everybody, I recently acquired a RIS 1.5 box and started playing with nqc (great program btw)... Still, I have some questions... Let's take a simple example: I have 1 touch sensor and I want to do a SOUND_UP when the touch is pressed and a (...) (24 years ago, 6-Sep-00, to lugnet.robotics.rcx.nqc)
 

event, mask
(score: 3.293)

  whats wrong with this events ?
 
I tried to make a proximitysensor with was "direction aware", this means i used two lightsensors on port 1 and 3. And tried to make the change of direction dependable of with sensor(event) was triggert. See code : #define EVENT_PROXL 0 // proximity (...) (24 years ago, 28-Oct-00, to lugnet.robotics)
 

event, mask
(score: 3.292)

  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)
 

event, mask
(score: 3.288)

  Re: newbie questions...
 
(...) Ok, so the 'if ( ActiveEvents(10) & EVENT_MASK(0) )' is the correct syntax to check if event 0 was triggered ? (...) Or a function that returns the current task number ? Thanks for your advices and keep up the good work ! Stelian. (24 years ago, 11-Sep-00, to lugnet.robotics.rcx.nqc)
 

event, mask
(score: 3.283)

  Re: Monitor() and Event()
 
(...) The "monitor" control structure (as well as "acquire") is a very useful supplement of the existing control structures, such as "if", "while", "until", etc. Dave Baum already gave an example and with the following I also want to point out a (...) (24 years ago, 26-Oct-00, to lugnet.robotics.rcx.nqc)
 

event, mask
(score: 3.260)

  Re: Event dispatch
 
(...) I think the choice of whether to have a single task waiting on multiple events or multiple tasks each servicing a single event depends on the following questions: 1) Is there a single activity that should be happening that gets interrupted by (...) (24 years ago, 17-Dec-00, to lugnet.robotics.rcx.nqc)
 

event, mask
(score: 3.254)

  Event dispatch
 
In the SDK2 documentation for the new Lego-Scripting language events are used as follows: sensor Opto on 2 Opto is light as percent event gloomy when Opto is 0..20 event dull when Opto is 30 .. 40 event intense when Opto is 80 .. 100 main { start (...) (24 years ago, 17-Dec-00, to lugnet.robotics.rcx.nqc)
 

event, mask
(score: 3.253)

  Re: "Speed" of control statments
 
Actually, its not a general programming question. Efficiency of something like events is heavily dependent on the operating system (in this case the Lego firmware). Efficiency of "if" vs. "switch" can be very dependent on the compiler and the CPU (...) (24 years ago, 31-Mar-01, to lugnet.robotics.rcx.nqc)
 

event, mask
(score: 3.218)

  Re: Which way is faster?
 
By "fastest", I assume you mean the smallest worst case latency between a condition happening and the RCX responding to it. Option #2 has the drawback that while the RCX is responding to one condition, it won't be looking for the other ones. So the (...) (23 years ago, 13-Apr-01, to lugnet.robotics.rcx.nqc)
 

event, mask
(score: 3.208)

  Re: Spybotics Comms
 
After doing a little more sleuthing, I was able to find out how to process incoming IR and VLL messages. And yes, thankfully, VLL decode is built into the firmware! The following is some SpyBot MindScript code that will handle both incoming VLL and (...) (22 years ago, 19-Aug-02, to lugnet.robotics.spybotics)
 

event, mask
(score: 3.032)

  events or infinite loops... which is better?
 
Hi Everyone, I just recently learned how to use event monitoring, and I really like it. My question is whether or not this method is more efficient than infinite loops. I always used to check for sensor readings using an infinite loop something like (...) (22 years ago, 11-Oct-02, to lugnet.robotics)
 

event, mask
(score: 3.012)

  Re: Spybotics Comms
 
In lugnet.robotics.spybotics, Marco Correia writes: [snip] (...) I need help answering the question "Can a Spybot send Mana IR-like protocol? I want my Spybot to control my mana. I'm too stupid to interpret to Spybot SDK on my own, and there's no (...) (22 years ago, 4-Apr-03, to lugnet.robotics.spybotics, lugnet.robotics.rcx.nqc, lugnet.robotics)
 

event, mask
(score: 2.928)

  Help with BricxCC and NQC...
 
Hello. I have joined the list to hopefully work through some issues I am having programming my RCX, gather more info about robotics, and possibly offer some help in time. Please let me know if this is not the best list to be posting this sort of (...) (21 years ago, 29-May-03, to lugnet.robotics)
 

event, mask
(score: 2.915)

  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)
 

event, mask
(score: 2.911)

  Re: Spybot studies: seek a world object
 
(...) Cool program. Keep up the great work! (...) You might be able to use PointToward_Bead without running into problems. __nolist void PointToward_Bead(const int& nTimes) { asm { 0xe3, &nTimes, 0x17, 81, 0x01, 1 }; } This ROM routine monitors an (...) (21 years ago, 10-Nov-03, to lugnet.robotics.spybotics)
 

event, mask
(score: 2.877)

  Spybot MessageEvent
 
I realize that I may be reinventing the wheel with this, but I was not able to find another way of accomplishing the same thing. After setting up a VLLEvent using: #define VLLEvent 1 SetEvent(VLLEvent, VLL(), EVENT_TYPE_VLL_MSG_RECEIVED); then (...) (21 years ago, 29-Oct-03, to lugnet.robotics.spybotics)
 

event, mask
(score: 2.874)

  Re: Spybots communication
 
(...) To send and receive IR or VLL messages using NQC and Spybots you would write a program something like this: #define VLLEvent 1 #define MessageEvent 2 void DebugOut(const int &x) { SetLED(LED_MODE_ON, (x & 0x17) | ((x & 8) * 4) | ((x & 32) / (...) (21 years ago, 16-Mar-04, to lugnet.robotics.spybotics)
 

event, mask
(score: 2.798)

  Spybotics Experiments
 
Hi, everybody, I'm new to this forum, and I'm glad I found it. :-) Please note that the following is only an "preliminary report" of a "Work in progress". :-) Recently, I bought a couple of Spybots as buddies for my RCX and was of course thrilled by (...) (20 years ago, 20-Sep-04, to lugnet.robotics.spybotics)  
 

event, mask
(score: 2.730)

More:  Next Page >>


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