|
|
I am back on the Lego wagon, making another painting machine. Looking forward to
creating the best practices program with your advising.
|
|
|
In lugnet.robotics.rcx, Iain Hendry wrote:
> BrixCC doesn't recognize "wait1Msec", and when I try to download a program with
> it, it just gives me an error.
>
> That's kind of what I was getting at with the motor power stuff; I can tell the
> RCX can handle more motor powers, but there doesn't appear to be a way to use
> them in the program...
D'oh...
I'm posting this because I'm sure I'm not the only one who missed this: I
didn't realize there's a drop-down when BricxCC starts up, to select "Swan"
instead of "RCX" when making the first handshake with the brick.
After doing that, it compiles no problem. MotorSetPower128 doesn't seem to
work, though...
At any rate, WaitMS() is great! Super-precision motor control, here I come!
http://www.youtube.com/watch?v=kZlBlbe2cu0
-Iain
|
|
|
In lugnet.robotics.rcx, Jetro de Chateau wrote:
> > I found this site: http://www.elenafrancesco.org/old/lego/index.html
> Thanks for the link!
(snip)
> The documentation on this page
> http://www.elenafrancesco.org/old/lego/Firmware%20Features.html mentions the
> following:
>
> "new wait1Msec opcode to perform program waits using one millisecond resolution"
>
> Maybe that is what you are looking for.
BrixCC doesn't recognize "wait1Msec", and when I try to download a program with
it, it just gives me an error.
That's kind of what I was getting at with the motor power stuff; I can tell the
RCX can handle more motor powers, but there doesn't appear to be a way to use
them in the program...
-Iain
|
|
|
In lugnet.robotics.rcx, Iain Hendry wrote:
>
> I found this site: http://www.elenafrancesco.org/old/lego/index.html
Thanks for the link!
> After downloading the 100x firmware, I can tell that it is a different firmware
> (different clock, tone on button press is different, etc.) - however, it seems
> like I just can't unlock this 1/1000 sec. timer issue. Wait(1); still results
> in a 1/100 second delay.
>
> I found some reference to a "WaitMS" command in the NQC programming guide,
> however, if I enter "WaitMS(1);" I get a "Error: Undefined function 'WaitMS'"
> whenever I try to compile. BrixCC recognizes the WaitMS command (it turns blue
> when I type it), so it must be valid...
>
> I'm not a programmer. I just want a 1/1000 wait :)
>
> -Iain
The documentation on this page
http://www.elenafrancesco.org/old/lego/Firmware%20Features.html mentions the
following:
"new wait1Msec opcode to perform program waits using one millisecond resolution"
Maybe that is what you are looking for.
|
|
|