Square.nxc
From RoboWiki
#define MOVE_TIME 1000 #define TURN_TIME 500 task main() { repeat(10) { repeat(4) { OnFwd(OUT_AC, 75); Wait(MOVE_TIME); OnRev(OUT_C, 75); Wait(TURN_TIME); } } Float(OUT_AC); }
#define MOVE_TIME 1000 #define TURN_TIME 500 task main() { repeat(10) { repeat(4) { OnFwd(OUT_AC, 75); Wait(MOVE_TIME); OnRev(OUT_C, 75); Wait(TURN_TIME); } } Float(OUT_AC); }