|
In article <369BE7BD.EA238487@usit.net>, Chris Stanley
<cstanley@usit.net> writes
> hello, everyone. i'm new to the list. i was just reading about the
> "radar" idea and whipped up simple but effective implementation. check
> it out at http://www.csepaintball.com/chris/radarbot.html and tell me
> what you think. thanks!
I like it. What language is radar.prg in, please? When I unzip
radar.zip I seem to get a binary file.
--
Regards - Peter Hesketh, Mynyddbach, Mon.
Forty reasons why a dog is better than a woman: number 17
"A dog's disposition stays the same all month long."
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
|
i'm so new to this that i've not yet sat down and learned nqc or botcode or
the like. radar.prg was written with the basic coder included on your
mindstorms cd. i'll update my page to mention that. sorry for the
confusion!
--
Chris Stanley
cstanley@usit.net
Peter Hesketh wrote:
> In article <369BE7BD.EA238487@usit.net>, Chris Stanley
> <cstanley@usit.net> writes
> > hello, everyone. i'm new to the list. i was just reading about the
> > "radar" idea and whipped up simple but effective implementation. check
> > it out at http://www.csepaintball.com/chris/radarbot.html and tell me
> > what you think. thanks!
>
> I like it. What language is radar.prg in, please? When I unzip
> radar.zip I seem to get a binary file.
> --
> Regards - Peter Hesketh, Mynyddbach, Mon.
> Forty reasons why a dog is better than a woman: number 17
> "A dog's disposition stays the same all month long."
> --
> Did you check the web site first?: http://www.crynwr.com/lego-robotics
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
|
On Wed, 13 Jan 1999, Chris Stanley wrote:
> i'm so new to this that i've not yet sat down and learned nqc or botcode or
> the like. radar.prg was written with the basic coder included on your
> mindstorms cd.
Chris,
I built a little RadarBot just like yours (very minimalist, I love it :)
and wrote some NQC code to drive it around my kitchen floor. It really
zooms, until the left wheel inevitably falls off. :)
The program below might help you get started with NQC, which I thoroughly
recommend if you're at all familiar with C syntax.
Cheers,
- Ben.
-------------------------------------------------------------------
Ben Williamson benw@pobox.com http://www.pobox.com/~benw/
#define LIGHT IN_2
#define LEFT OUT_A
#define RIGHT OUT_C
#define SPEED 7
/* connections to both motors are reversed: */
#define L_FWD Rev(LEFT, SPEED)
#define L_REV Fwd(LEFT, SPEED)
#define R_FWD Rev(RIGHT, SPEED)
#define R_REV Fwd(RIGHT, SPEED)
#define STOP Off(LEFT); Off(RIGHT)
#define THRES 50
int light;
task main
{
Sensor(LIGHT, IN_LIGHT);
IRMode(IR_HI);
L_FWD; R_FWD;
while (1==1) {
SendMessage(255);
light = LIGHT;
if (light > THRES) {
L_REV;
Sleep(10);
} else {
L_FWD;
}
}
}
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
|
> I built a little RadarBot just like yours (very minimalist, I love it :)
> and wrote some NQC code to drive it around my kitchen floor. It really
> zooms, until the left wheel inevitably falls off. :)
I like it, our wheels stay on until it destroys itself by running full tilt
into something black...
Our design has two motors at the back driving wheels directly, and two free
running castors at the sides as close to the front as possible, so it
travels at a fair lick when going straight. It also spins around in one
place when blinded by the sun.
Our next iteration will be to sample ambient light in between pings, and
when the light is too bright search (slowly) for somewhere darker to play. A
rotation sensor (yet to be acquired) on each wheel will do for collision
detection when running degraded mode, and also allow us to run in a straight
line at high speed
--
John & James Cooper, Wallington, UK
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
|