To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Search Results: range USB IR long Tower
 Results 2061 – 2080 of 2193.
Search took 0.02 CPU seconds. 

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

  sys_time (long post)
 
As I was poking around in the BrickOS kernel, it occurred to me that using the sys_time variable isn't entirely safe. Since sys_time is 32-bits and the processor can only read 16-bits at a time into a register, there is a period of time between the (...) (22 years ago, 12-Dec-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.042)

  Re: sys_time (long post)
 
(...) It turns out that the nature of the glitch depends on the order you read the upper and lower 16-bits of sys_time. If the compiler generates code that reads the high word first (which it seems to do), then your example will work. However, if (...) (22 years ago, 13-Dec-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.042)

  Re: sys_time (long post)
 
Does the H8 let an interrupt interrupt an interrupt? (Or at least the interrupts that matter in this case?) You two might want to check on that. It would seem the code is safe if the answer to the first question is no... ? Maybe I'm missing (...) (22 years ago, 13-Dec-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.042)

  brickOS is slower than NQC for sending message
 
I tested two ways with brickOS and NQC, source as below, you will find the NQC can only send about 80 messages in 4s, brickOS can send all 255 messages, but need 20s, in other word, NQC needs 50ms for sending a message, or brickOS needs above 100ms (...) (16 years ago, 26-Jun-08, to lugnet.robotics.rcx)
 

range
(score: 1.042)

  Re: sys_time (long post)
 
(...) I went back and read... I was missing something apparently... Note to self... do not skim. -Kekoa (22 years ago, 13-Dec-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.042)

  Re: sys_time (long post)
 
Mark, Excellent Post ! Ok, I will admit it; I was the one that put the sys_time handler on the NMI. 8-) I guess I will want to think about this a bit; but I see that you have done a good bit of that yourself. ... Could the 'Get' function do the (...) (22 years ago, 12-Dec-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.042)

  Re: Polling sensor values with wait_event
 
Thomas, I had a thought about this situation. You could write a function that sets a flag when the event is triggered, do nothing otherwise. You could call this function from within each of the tasks you write (at a somewhat high frequency ... say (...) (22 years ago, 28-Nov-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.042)

  Re: sys_time (long post)
 
Only a suggestion, In any processor architecture (with or without disabling or recursive interrupts) when I need to read timers with more than 1 single instruction I do the following: Read the timer (both low and high value) until I get 2 times the (...) (22 years ago, 16-Dec-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.041)

  brickOS and latest binutils (1 issue now fixed in binutils CVS, and workaround patch to brickOS for the other)
 
The "invalid symbolsrec file" issue (error from makelx) issue is now fixed in binutils CVS, both on the trunk, and on the 2.13 branch - so the next release of binutils, be it 2.13.2 or 2.14 will have this fixed. The "ld segmentation fault" issue is (...) (22 years ago, 4-Dec-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.041)

  Re: Firmware download troubles
 
Also: When it seems to get to the very end before the error appears, I sometimes get a long (3-4 seconds) low tone from the RCX. Matt (22 years ago, 9-Dec-02, to lugnet.robotics.rcx)
 

long
(score: 1.040)

  Re: NQC Linux Support - USB and TCP
 
(...) Matthew, Thanks for your patch for NQC. I will look at adding this to the official sourcecode and creating a new official release. John Hansen (16 years ago, 17-Mar-09, to lugnet.robotics.rcx.nqc)
 

usb
(score: 1.039)

  Re: Float and int
 
(...) For most brick projects I can think of, it is. If you want to travel your robot around, you will have to deal with sin, cos, tan and square root. First thing you can do is working with tables to avoid "on the fly" sin calculation. Second, you (...) (22 years ago, 30-Dec-02, to lugnet.robotics.rcx.legos)
 

long
(score: 1.037)

  Re: Interesting BrickOS Timing Results
 
(...) The delay was added a long time ago after a bit of discussion on this newsgroup/list. A search through old newsgroup posts will turn up a brief series of three posts with subject "Rom sensor read routine" from Apr/May 1999. The explanation (...) (22 years ago, 15-Jan-03, to lugnet.robotics.rcx.legos)
 

long
(score: 1.036)

  Interesting BrickOS Timing Results
 
Hi All, The recent posts about interfacing an i2c device to an RCX sensor port (in .robotics) got me interested in looking at the kernel code that handles the sensors. So, I did and found myself looking at the ds_handler function. This function is (...) (22 years ago, 14-Jan-03, to lugnet.robotics.rcx.legos)
 

long
(score: 1.035)

  Re: Interesting BrickOS Timing Results
 
(...) I forgot to mention... This is *almost* the same as moving some of the subsystem code into a seperate high priority task. For example, LCD refresh code is executed in the 1ms timer ISR. It really doesn't need to be in the ISR. It can do it's (...) (22 years ago, 15-Jan-03, to lugnet.robotics.rcx.legos)
 

long
(score: 1.035)

  Re: Sensor Sampling; Progress?
 
The Lego firmware cuts power for about 200uS, with a period of 3mS. So most sensors have to have enough capacitor based power storage for the full 200uS and be able to run on about 93% duty cycle. (The rotation sensor is one of the devices on the (...) (22 years ago, 19-Jan-03, to lugnet.robotics.rcx.legos)
 

long
(score: 1.035)

  Re: Sensor Sampling; Progress?
 
(...) Yes. (...) individually (...) That's right. (...) I agree. With the current firmware, power gets cut off to all 3 sensors for ~85us (sometimes longer). With the scheme I mentioned, power would be cut to only one sensor for ~25us. The sample (...) (22 years ago, 19-Jan-03, to lugnet.robotics.rcx.legos)
 

long
(score: 1.035)

  Re: newbie troubles (now they in packs of 2)
 
I had exactly the same problems not so long ago so i followed the instructions from this site and uninstalled the brickos i had and used the one they had provided following the link. So go to this site (URL) let me know how you get on. Good luck (...) (22 years ago, 3-Feb-03, to lugnet.robotics.rcx.legos)
 

long
(score: 1.034)

  Is there a NQC HowTo out there someplace?
 
Hello, I have reached the limits of what Mindstorm 2.0 software can do a long time ago and now want to go further. I think I would try the NQC. My problem is that I do not know anything about C or NQC. I have learned Pascal and Basic language (and (...) (22 years ago, 1-Feb-03, to lugnet.robotics.rcx.nqc)
 

long
(score: 1.033)

  Re: frame RCX reply how
 
(...) Bingo! I reached the bricktools/ of the frame-free: (URL) bytes At a glance, I missed how bricxcc toggles x08 in the command op to let command ops be repeated, but I'd now guess the bricxcc algorithm for framing standard RCX replies is: 1) (...) (22 years ago, 1-Feb-03, to lugnet.robotics.rcx)
 

long
(score: 1.033)

More:  Next Page >>


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