Skip to content

Commit

Permalink
Changed the speeds of the script commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronson Zgeb committed Dec 10, 2011
1 parent ae3c3c7 commit 3468c5e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions robot.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@
switch ($opcode) {
case "fd":
echo "Forward ho!\n";
send("200A200B");
send("250A250B");
wait($arg);
send("0A0B");
send("AABB");
break;
case "bw":
echo "Backward ho!\n";
send("-200A-200B");
send("-250A-250B");
wait($arg);
send("0A0B");
send("AABB");
break;
case "rt":
echo "Right Turn ho!\n";
send("180A-180B");
send("250A-250B");
wait($arg);
send("0A0B");
send("AABB");
break;
case "lt":
echo "Left Turn ho!\n";
send("-180A180B");
send("-250A250B");
wait($arg);
send("0A0B");
send("AABB");
break;
case "pu":
echo "Pen Up!\n";
Expand Down

0 comments on commit 3468c5e

Please sign in to comment.