To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 23698
23697  |  23699
Subject: 
Re: FLL not allowing NQC; Mindscript is allowed
Newsgroups: 
lugnet.robotics
Date: 
Tue, 15 Mar 2005 04:19:27 GMT
Viewed: 
7578 times
  
On Mon, March 14, 2005 6:54 pm, John Hansen said:
> 
> | #define C 262
> |
> | task main()
> | {
> |
> |   int yellow = 0;
> |
> | red:
> |   if (!SENSOR_1)
> |     PlaySound(0);
> |   else
> |   {
> |     PlaySound(3);
> |     yellow += 1;
> |   }
> |   if (yellow > 5)
> |     PlayTone(C, 50);
> |   else
> |     goto red;
> |
> | }

...
>   Unfortunately it isn't completely
> clear what sound is played when a value is not attached to the play sound icon
> (I'm guessing that it is sound zero)

Double-clicking the icon in Robolab shows the help.  The default value for the
playsound is 6 (fast rising sweep) and 3 is decending sweep.



Message has 1 Reply:
  Re: FLL not allowing NQC; Mindscript is allowed
 
(...) That is unfortunate. Robolab requires that kids specify the sound by a number which ranges from 1 to 6 (apparently). No sound name constants can be defined and used to visibly represent the actual sound they want the RCX to play (I guess). The (...) (22 years ago, 15-Mar-05, to lugnet.robotics, FTX)

Message is in Reply To:
  Re: FLL not allowing NQC; Mindscript is allowed
 
(...) Just to clarify, your sample program is not really equivalent to the two NQC programs I posted. In my two samples I used two tasks and a global variable. Your sample would need to use a container and a task split to truly be equivalent. (...) (...) (22 years ago, 14-Mar-05, to lugnet.robotics, FTX)

114 Messages in This Thread:
(Inline display suppressed due to large size. Click Dots below to view.)
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
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR