Subject:
|
Re: CyberMaster memory limit?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sat, 28 Nov 1998 17:44:01 GMT
|
Original-From:
|
Laurentino Martins <lau@mail.telepac.%StopSpammers%pt>
|
Viewed:
|
2648 times
|
| |
| |
Your program generates a .RCX file of 440 bytes.
I've created one with 452 that works OK, but had to stop around that number
because after more 2 or 3 lines of code the last task simply disappeared (my
program had 1 main plus 3 tasks).
I guess the limit must be about 460/470 bytes, which is enough to make some
complex programs but not too large ones. The program source had 154 lines code
of and 3950 bytes of size.
I'm learning some optimizations we can make with CyberMaster (only) when using
the motors, which along with some easy code optimizations should shrink my
inefficient program to about 350 bytes of compiled code (I'm only guessing
though).
I only wish they have put some external memory on the RCX has they did in the
RCX!!! :-(
The CyberMaster is wonderful for making exploration vehicles, with a range of at
least 13 meters (thru a zigzagging hall and across 2 rooms!), with some
extra-sensitive (50 ticks for 360º of rotation) and useful tacho counters in
each internal motor, some huge super-cool and exclusive threads... it's great!
:-D
I've built 2 touch sensitive antennas in mine, and downloaded a basic (although
somewhat intelligent) search and obstacle avoiding program.
I'm thinking now in using the OCX to monitor my bug-like rover and to map a room
in the PC memory.
I'm going to use the Tacho counters in the threads to get the approximate
position and direction where the rover is facing (the difference between the 2
Tachos should give us a direction), which I think is feasible with some
finetunning.
Then, at each impact the computer will map a point in the screen and with some
luck map a room. :-)
Is anybody working on a project like this?
If any of you is using NQC with a CyberMaster, download NQC 1.0 Beta 2 which
already supports CyberMaster download along with some CyberMaster specific code.
I'm working with Dave Baum (the NQC author) in creating a new RCX.NQH with even
better CyberMaster support. Contact me if you wish to exchange ideas.
Laurentino Martins
At 16:39 28-11-1998 Saturday , you wrote:
> I've been playing around with programming the CyberMaster unit with
> NQC. I've noted that when the size of the program gets too large, the
> execution of the program fails in some way. The way it fails is
> sometimes somewhat inconsistent.
>
> I don't know just how large the limit is, but I've enclosed a sample
> program below which fails to execute because it is too large. Remove
> some of the "WAITPLAY" statements, and the program executes as
> expected.
>
> (The program simply waits for the the sensor 1 to be pressed, plays a
> tone, and repeats. After a sequence of this, it plays a different
> tone and ends.)
>
> Fredrik
>
> --8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<---
> #define WAITPLAY wait(IN_1==1);PlaySound(1);wait(IN_1==0);
>
> task main {
>
> Sensor(IN_1,IN_SWITCH);
>
> WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY;
> WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY;
> WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY; WAITPLAY;
> WAITPLAY; WAITPLAY;
>
> PlaySound(2);
> }
|
|
Message has 5 Replies: | | Re: CyberMaster memory limit?
|
| In message <4.1.19981128170141....lepac.pt>, Laurentino Martins <lau@mail.telepac.pt> writes (...) This use of software to determine direction is what I was alluding to in an earlier post when the others were trying to get their mobile to travel in (...) (26 years ago, 28-Nov-98, to lugnet.robotics)
| | | Re: CyberMaster memory limit?
|
| In message <4.1.19981128170141....lepac.pt>, Laurentino Martins <lau@mail.telepac.pt> writes (...) Does this work on Windows NT or Win 95? Dennis (26 years ago, 28-Nov-98, to lugnet.robotics)
| | | Re: CyberMaster memory limit?
|
| (...) There's nothing unknown about the Tachos. If you need help using them, gimme a call. :-) (...) Yeah, I've also started with that bot. It's very well designed! And I've never exchanged any batteries! :-) (...) The best vehicle would be one with (...) (26 years ago, 28-Nov-98, to lugnet.robotics)
| | | Re: CyberMaster memory limit?
|
| (...) But does it fail to run on your CyberMaster unit as well? (...) Are you saying that you're using NQC to read off the tachometer numbers? If so, what additions to rcx.nqh have you used to achieve this? Fredrik (26 years ago, 29-Nov-98, to lugnet.robotics)
| | | Re: CyberMaster memory limit?
|
| (...) I forgot one IMPORTANT detail: DON'T USE the AGC() (change the name in the sources because I misspelled it) as control in cycles because NQC is not compatible with it, assign it to a variable instead. For example, don't do things like this: (...) (26 years ago, 29-Nov-98, to lugnet.robotics)
|
Message is in Reply To:
| | CyberMaster memory limit?
|
| I've been playing around with programming the CyberMaster unit with NQC. I've noted that when the size of the program gets too large, the execution of the program fails in some way. The way it fails is sometimes somewhat inconsistent. I don't know (...) (26 years ago, 28-Nov-98, to lugnet.robotics)
|
20 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|