 | | New Article
|
|
Hello, I have a new article at the O'Reilly Network: The Straight and Narrow (URL) about moving a robot in a straight line and includes discussion of the differential, rotation sensors, and dead reckoning in general. Regards, Jonathan (26 years ago, 24-May-00, to lugnet.robotics)
|
| |
 | | grasshopper learns new tricks
|
|
CREATE DOES>, VALUE and EVALUATE. Thank's guys. These will all enhance my code. I knew about CREATE DOES> but never really understood it. Your description pushed me finally over the edge of basic comprehension. EVALUATE is really cool and VALUE is (...) (26 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | CONSTANTS and VALUES in pbForth
|
|
(...) There are a couple of things in this note. One is an introduction to CREATE DOES> and the other is a solution to your actual problem. Basically, what CREATE DOES> does is separate the run-time and compile time semantics of a word. This is (...) (26 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: Forth question
|
|
(...) You might want to try : zzz S" CONSTANT ONE" EVALUATE ; 1 zzz (...) I think VALUE can be used for that. Ernst (26 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: How do I delete firmware from firmware?
|
|
(...) Great. Thanks. This is a real lifesaver since I am deleting and reloading firmware at a rapid rate and my RCX is inside a construction which makes it awkward to get at the batteries. Now the delete/reload can be done entirely at the GUI. (26 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: Forth question
|
|
(...) Actually the various reasons are simple so I might as well state them. The serial port is not available at the time I want to create a constant because the serial port will be broken and therefor can't be used as the forth input stream. I am (...) (26 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: Forth question
|
|
(...) I still want to create a constant from within a definition. I have an initializing word that will calculate the value of the constant. For various reasons I can't do this calculation except within the runtime behavior of the word. This is not (...) (26 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: GA in RCX
|
|
(...) Yes. Therefore you might want to use the truncation selection, which allows you to have only 1 copy of the population at a time to save memory. It worked for us, we have a small GA running inside of the RCX. We evolved a program with simple (...) (26 years ago, 24-May-00, to lugnet.robotics.rcx.legos)
|
| |
 | | RE: Forth question
|
|
(...) 1 CONSTANT ONE Recall that CONSTANT is a *defining* word, just like the ":" It makes a name in the dictionary, in this case "ONE" and then links to a special bit of code that is executed every time ONE is interpreted. It grabs the value out of (...) (26 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Forth question
|
|
I'm trying to define a constant in a compiled word. : zzz 1 CONSTANT ONE ; I know its not right. It tries to compile "ONE" which is not what is wanted. What is the right way to say this? (26 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
|