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.02 CPU seconds. 

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

  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: 4.048)

  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: 4.045)

  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: 4.041)

  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: 4.037)

  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: 4.032)

  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: 4.029)

  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: 4.029)

  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: 4.024)

  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: 4.021)

  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: 4.021)

  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: 4.020)

  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: 4.018)

  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: 4.018)

  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: 4.015)

  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: 4.011)

  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: 4.011)

  Re: Some beginner questions on serial communication
 
Hi, (...) Sorry, I don't have an RCX so can't really help you there. The NQC Guide is pretty good. The best way to find out is to try lots of combinations. (...) Here are a couple of programs where two Spybots send messages to each other. Another (...) (19 years ago, 26-Sep-05, to lugnet.robotics.spybotics)
 

event, mask
(score: 4.010)

  Re: Basic NQC Problem
 
(...) There's a couple of ways to fix it. One is as Raplph said - have the first task start up a dedicated second task that does nothing more than look for a touch in a very tight loop. Very roughly, it would work something like this: task (...) (19 years ago, 13-Nov-05, to lugnet.robotics)
 

event, mask
(score: 4.009)

  Re: Spybot built-in program
 
(...) I spent some time recently working on NQC headers which would enable using more (if not all) of the Spybot ROM subroutines and tasks with a NQC program. I haven't done extensive testing of the headers in real programs. I hope there are still a (...) (19 years ago, 14-Nov-05, to lugnet.robotics.spybotics)
 

event, mask
(score: 4.009)

  Help me convert this train program to use events (NQC)
 
For Christmas I'm setting up a LEGO train on top of a narrow wall, so it has to operate like a shuttle -- stop at each end and reverse motor direction. My first attempt had a train regulator attached to a polarity switch, with the switch being (...) (19 years ago, 28-Nov-05, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc, lugnet.trains, FTX)
 

event, mask
(score: 4.008)

More:  Next Page >>


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