Cik cak.nxc

From RoboWiki
Revision as of 10:22, 26 March 2008 by Palo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Krúžok Robotiky

/* cik_cak.nxc

Robot ma dva motory na porte AC
Vykonava jednuchu funkciu:ide vpred cik cakovane.

Autor: Matej Kurilla

*/

task main()
{
 int  i;
 
 for (i=1;i<10;i++)
 {
 OnFwd(OUT_AC, 75);
 Wait(1000);
 if ((i%2)==0)
    Float(OUT_A);
 else
     Float(OUT_C);
 Wait(800);
 }
 Float(OUT_AC);
}