Subject:
|
RE: RCX playing "Mary Had a Little Lamb"
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sun, 6 Dec 1998 04:56:17 GMT
|
Original-From:
|
Eric Eilebrecht <ericeil@microsoft.^AvoidSpam^com>
|
Viewed:
|
1258 times
|
| |
| |
My guess is that you are exceeding the maximum queue length for sounds. My
understanding is that the RCX plays the sounds asynchronously, meaning that
your program continues to execute while the sound is playing. So, if you
issue a bunch of "tone" commands quickly, they will queue up behind the ones
that are already playing. The problem is that the RCX limits that queue to
a fixed size, and if you try to queue up too many sounds, they will just be
thrown away.
If that is the problem, then you can probably fix it by waiting between each
"tone" command. If you wait for the duration of the tone, then they won't
queue up, and none will be dropped.
Eric
-----Original Message-----
From: Steve and Tracy Burmaster [ mailto:burmaster@sympatico.ca
<mailto:burmaster@sympatico.ca> ]
Sent: Saturday, December 05, 1998 3:46 PM
To: Mark Hoy; lego-robotics@crynwr.com <mailto:lego-robotics@crynwr.com>
Subject: RCX playing "Mary Had a Little Lamb"
I've programmed a "Light Tracker" to play the first part of "Mary Had a
Little Lamb" using a "My Commands" block and a Repeat forever command. It
plays it OK the first time but then gets muddled up. Any suggestions.
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|