|
| | 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: 0.364) |
|
| | 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: 0.363) |
|
| | 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: 0.363) |
|
| | 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: 0.363) |
|
|
| long (score: 0.363) |
|
| | 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: 0.362) |
|
|
| tower (score: 0.362) |
|
| | 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: 0.362) |
|
| | RE: USB / x86 open sys based RCX replacement??
|
| I think what you're looking for is the MIT handy board. Take a look at (URL) is a 68HC11 Micro controller with expansion boards, servo outputs, digital outputs, lot's of neat stuff. An assembled and tested handy board is about $299. There is a (...) (24 years ago, 11-Oct-00, to lugnet.robotics.rcx)
| |
| usb (score: 0.362) |
|
| | Positioning with the RCX - a pragmatic approach
|
| THE QUESTION ... ... how to determine and measure a position in a room? This question was raised several times in LUGNET (e.g. Kris Zabriskie) and caused some discussions. As it has been stated, this simple sounding task is not at all trivial and (...) (24 years ago, 3-Jan-01, to lugnet.robotics.rcx.nqc)
| |
| range (score: 0.362) |
|
|
| long (score: 0.361) |
|
|
| long (score: 0.360) |
|
| | Re: No CD with my new RIS 1.5
|
| (...) There are no IR drivers required -- it connects to a serial port and Windoze already has serial drivers. John A. Tamplin LiveOnTheNet.COM, Inc. jat@LiveOnTheNet.COM 2104 West Ferry Way 256/705-7007 - FAX 256/705-7100 Huntsville, AL 35801 (24 years ago, 18-Dec-00, to lugnet.robotics.rcx)
| |
| ir (score: 0.360) |
|
| | Lightsensor
|
| Hi all, as a newbie I have a problem in the training center with my new 1.5 RIS. The lightsensor shows only a range of 37/47 in view-mode between black and white. (and so it doesn´t beep) Is this normal or due to a msfunction of the sensor ? Thomas (24 years ago, 25-Dec-00, to lugnet.robotics.rcx)
| |
| range (score: 0.360) |
|
| | 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: 0.360) |
|
| | Page down
|
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anything under www.enteract.com/~dbaum gives me a 403 Forbidden. Is the page temporarily down, or has it moved? If it's down for a long time, where can I get the latest NQC version? -----BEGIN PGP (...) (22 years ago, 24-Nov-02, to lugnet.robotics.rcx.nqc)
| |
| long (score: 0.359) |
|
| | Re: LNP-problem...
|
| (...) Hi, I'm Pieter and working with Tom on a project. I 've tried you're code but it doesn't work. To me the problem seems to be with lnpd. Here is it's log of the session. 0:Info > created lock file /var/lock/LCK..ttyS0 233:Info > running in (...) (22 years ago, 23-Nov-02, to lugnet.robotics.rcx.legos)
| |
| long (score: 0.359) |
|
| | Re: Why...
|
| Nick, Setting the timeslice to a low number (5ms is fairly low), negetively effects overall system performance. Time used by the operating system for task switching is taken away from applications. If a switch takes .5ms (for example) and you switch (...) (22 years ago, 21-Nov-02, to lugnet.robotics.rcx.legos)
| |
| long (score: 0.359) |
|
| | Re: Communication between NQC and VisualBasic
|
| In article <G4uLMp.1tL@lugnet.com>, "Richard Sutherland" <richard@webbox.com> wrote: here...it would just be putting another level of abstraction between the (...) IR Messages are implemented, although in the simulated environment they result in (...) (24 years ago, 1-Dec-00, to lugnet.robotics.rcx.nqc)
| |
| ir (score: 0.357) |
|
| | Re: No CD with my new RIS 1.5
|
| The tower is just a serial device! No driver (other than that supplied by Win2K) needed! You can also use NQC to program your brick, or order RoboLab ($25) from Pitsco (www.pldstore.com). Here are my biases: RCX code teaches you *nothing* about real (...) (24 years ago, 18-Dec-00, to lugnet.robotics.rcx)
| |
| tower (score: 0.357) |