Subject:
|
Re: Mindstorms RIS RCX problem
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 30 Jun 1999 08:13:57 GMT
|
Original-From:
|
Laurentino Martins <LMARTINS@MARKTESTstopspammers.PT>
|
Viewed:
|
1088 times
|
| |
| |
The problem is that each tone is queued into a buffer and the firmware automatically processes the next intruction in the program. Since the next instruction is another tone, the queue starts filling faster than can be processed, since each tone takes some time to end.
Your problem is a buffer overflow.
Put a _pause_ in your program after sending each tone, so that the buffer never overflows.
Laurentino Martins
[ mailto:lau@mail.telepac.pt ]
[ http://www.terravista.pt/Enseada/2808/ ]
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message has 1 Reply: | | Re: Mindstorms RIS RCX problem
|
| Just an add-on to this. You can use a "wait" of a value that equals the total tone duration for several tones. You will find that using "wait" after each tone will limit the number of icons allowed in your program. Bob Fay Laurentino Martins (...) (25 years ago, 30-Jun-99, to lugnet.robotics)
|
Message is in Reply To:
| | Mindstorms RIS RCX problem
|
| I'm programming the RCX using the Mindstorms RIS software and running into a problem I can't figure out. My program has about 15-20 TONE commands to try and play a song. It downloads to the RCX without error, but when I run it it only plays about (...) (25 years ago, 30-Jun-99, to lugnet.robotics)
|
8 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
|
|
|
|