Subject:
|
Re: Not totally satisfied with the Lego Mindstorm concept: Mathematical variables and direct connection PC/mechanical device
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 24 Apr 2002 14:26:32 GMT
|
Original-From:
|
Steve Baker <SJBAKER1@AIRMAIL.spamcakeNET>
|
Reply-To:
|
sjbaker1@#nomorespam#airmail.net
|
Viewed:
|
640 times
|
| |
| |
Stig Anders Mastad wrote:
> 2. I can't program the RCX to make and manipulate mathematical
> variables (f.ex: X=1, X=X+1).
You need to download the free program "NQC" (which stands for 'Not Quite C').
It's a compiler for a subset of the C programming language for the RCX - and
with it you can certainly program the RCX to do things with variables.
> One of the first things I wanted to make, was a car driving around, counting
> how far it has driven, identifying obstacles, memorising all these information
> and having them in mind the next time it was out driving: to observe, remember
> and act "intelligent".
In principle this is possible - but there are quite a few challenges along the
way. Accurate navigation is quite difficult - but the difficulties are mechanical
in nature and not software limitations.
> QUESTIONS
> ad 1. Can I program directly to the ports by using JAVA or should I learn another language?
> - please send links and information.
There is a JAVA implementation for RCX - check out "LeJOS"
> ad 2. I've seen some internet pages for programming the RCX in languages
> similar to C (NQC) and Java (http://lejos.sourceforge.net/) . From what
> I understand, they do not operate with mathematical variable.
Sure they do.
> - I'm I wrong or not? I'd like to make my LM-set creations more
> "intelligent" by using mathematical variables. Any help willl do!
I think you should learn NQC.
----------------------------------------------------------------------
Mail : <sjbaker1@airmail.net> WorkMail: <sjbaker@link.com>
URLs : http://www.sjbaker.org
http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
http://prettypoly.sf.net http://freeglut.sf.net
http://toobular.sf.net http://lodestone.sf.net
|
|
Message is in Reply To:
10 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|