task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
task music() { int lastTone=5000; while ( true ) { int tone= Random (5000)+500; int duration= Random (500); PlayTone(tone,duration); Wait(duration); } } task main() { start music; while ( true ) { /* Determine Next Action */ unsigned int duration= Random (5000); unsigned int motorSpeed= Random (100); unsigned int syncMode= Random (3); /* Display Next Action */ ClearScreen(); NumOut(0,LCD_LINE1,duration); NumOut(0,LCD_LINE2,motorSpeed); NumOut(0,LCD_LINE3,syncMode); /* Perform Next Action */ switch (syncMode) { case 0: OnFwdReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 1: OnRevReg(OUT_AC,motorSpeed,OUT_REGMODE_SYNC); break ; case 2: OnFwdSync(OUT_AC,motorSpeed,-100); break ; case 3: OnRevSync(OUT_AC,motorSpeed,-100); break ; } Wait(duration); } } * This source code was highlighted with Source Code Highlighter .
* This source code was highlighted with Source Code Highlighter .
- # in cm
- DEFINE NEAR = 7
- def main ():
- DefineSensors (None, None, None, EYES)
- while true:
- OnFwd (OUT_BC, 50)
- while SensorVal (4)> NEAR:
- pass
- Off (OUT_BC)
- while SensorVal (4) <NEAR:
- OnFwd (OUT_B, 50)
- Wait (100)
Source: https://habr.com/ru/post/116408/
All Articles