 | | Expression limitations w/bytecode
|
|
As I understand it, the bytecode interpreter doesn't allow you to do fairly simple things like subtract two variables from each other. That makes doing comparisions between sensors somewhat challenging if you want to know the magnitude of the (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: Expression limitations w/bytecode
|
|
(...) The firmware does support basic arithmetic operations. You can use them in NQC like this... int a, b; task main { a = IN_1; b = IN_1; b -= a; } Dave p.s. As a side note, NQC does not support stuff like "a=b+c", but this is due to concurrency (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: is Mindstorm/RCX Y2K Compliant???
|
|
(...) No, just because it has a microcontroller in it doesn't mean it will stop working in 2000. Russell is absolutely right. If it doesn't know what the year is (you never tell it) it doesn't know when Y2K is going to happen. There are too many (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | RE: is Mindstorm/RCX Y2K Compliant???
|
|
This is getting way out of hand... (...) If it doesn't know what year it is, then it can't have a Y2K problem! And even if it would know about the year, and even if there was a Y2K bug, I don't think it would matter much. In the worst case, your (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: FLASHING LIGHT ON LCD PANEL?
|
|
(...) The simplest solution is to reload the firmware. You can use the Lego software to do this. I'm almost positive you can reset if from inside NQC, but since I don't use NQC, I can't give you sample code. -Kekoa (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: is Mindstorm/RCX Y2K Compliant???
|
|
(...) What do you mean by "internal clock?" You seem to indicate that the microcontroller inside the RCX somehow knows the date. It does not. The only "clock" inside the microcontroller is a counter that counts cycles. It starts at zero when you (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: Expression limitations w/bytecode
|
|
(...) The supplied programming environment does not allow you to subtract one sensor value from another, but the bytecode interpreter does. See: (URL) see NQC, as Dave Baum pointed out. You do not have to resort to replacement firmware unless you (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: is Mindstorm/RCX Y2K Compliant???
|
|
A more likey reason for a crash is that people will actually believe all these predictions that the markey will crash and try to convert everything to cash. Jasper Janssen wrote in message <36a3cf2e.46618061@l...et.com>... ... (...) ... (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | RE: is Mindstorm/RCX Y2K Compliant???
|
|
(...) bug, I (...) left (...) or (...) different (...) Well, those of us who are using the RCX for mission critical applications can't be too careful. -Allen PS: I just finished my Lego open-heart surgeon, I'll post pictures in a few days. -- Did (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: Expression limitations w/bytecode
|
|
Dave Baum writes: > The firmware does support basic arithmetic operations. You can use them > in NQC like this... Ah, my mistake. I had tried something like "if (a - b > 20)" using NQC, and it failed. I referred to the docs, and my read of the (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: Expression limitations w/bytecode
|
|
Kekoa Proudfoot writes: > Or see NQC, as Dave Baum pointed out. For my current project, I'll do that. :-) > You do not have to resort to replacement firmware unless you really want > to. Coming from programming some of the 68hc11 boards, I find that (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: Seeking Strategies on Humanoid Robots/Walkers
|
|
take a look at this guy's page, he has some great ideas on walkers even ones that shift weight from foot to foot. if i remember correctly he has one with an ankle... m. -- Did you check the web site first?: (URL) (28 years ago, 18-Jan-99, to lugnet.robotics)
|
| |
 | | Re: is Mindstorm/RCX Y2K Compliant???
|
|
Jasper Janssen writes: > On Thu, 31 Dec 1998 19:53:26 GMT, lego-robotics@crynwr.com (Russell > Nelson) wrote: > > >Did you *tell* it which year it was?? > > > >Then why do you think it cares?? > > It's a microcontroller. Therefore it has an internal (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: Expression limitations w/bytecode
|
|
One more note on arithmetic... The firmware supports operations where the second operand is either a constant or a variable, but not other sources (such as input values, timers, etc). Present versions of NQC don't check this, so code like "a -= (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: Seeking Strategies on Humanoid Robots/Walkers
|
|
-----Original Message----- From: Mike Fusion <tltpj@csd.uwm.edu> To: lego-robotics@crynwr.com <lego-robotics@crynwr.com> Date: Monday, January 18, 1999 9:16 PM Subject: Re: Seeking Strategies on Humanoid Robots/Walkers (...) ones (...) sorry, i (...) (28 years ago, 18-Jan-99, to lugnet.robotics)
|
| |
 | | ok, time for a stupid question...
|
|
what exactly is the purpose of a differential gear? i've got several of them, i've seen them used in various projects, but i've never quite managed to figure out what they do. ok, there. i feel much better. thank you. -- Chris "Clueless" Stanley (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: ok, time for a stupid question...
|
|
Chris: I believe it allows the two wheels attatched to one drive shaft to turn at different rates, thus allowing the gear-motor system to corner without skidding. -Zach (...) ---...--- Zachary Bourk UCSD, EE http:\\www.geocities...ystem\4968 (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: ok, time for a stupid question...
|
|
Chris Stanley writes: > what exactly is the purpose of a differential gear? i've got several of > them, i've seen them used in various projects, but i've never quite > managed to figure out what they do. > > ok, there. i feel much better. thank you. (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: ok, time for a stupid question...
|
|
=>Chris Stanley wrote: =>> =>> what exactly is the purpose of a differential gear? i've got several of =>> them, i've seen them used in various projects, but i've never quite =>> managed to figure out what they do. Zachary A. Bourk" (...) (28 years ago, 19-Jan-99, to lugnet.robotics)
|
| |
 | | Re: ok, time for a stupid question...
|
|
(...) I believe the one you are referring to is found at: (URL) Mark (28 years ago, 19-Jan-99, to lugnet.robotics)
|