From e5baff7372c0455755831f813ef6e715632fe07c Mon Sep 17 00:00:00 2001 From: dcuartielles Date: Thu, 16 May 2013 15:23:42 +0200 Subject: [PATCH] fixed order in how the commands were executed --- .../explore/R02_Line_Follow/R02_Line_Follow.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/Robot_Control/examples/explore/R02_Line_Follow/R02_Line_Follow.ino b/libraries/Robot_Control/examples/explore/R02_Line_Follow/R02_Line_Follow.ino index 0bb7b4acb..94d3f0b96 100644 --- a/libraries/Robot_Control/examples/explore/R02_Line_Follow/R02_Line_Follow.ino +++ b/libraries/Robot_Control/examples/explore/R02_Line_Follow/R02_Line_Follow.ino @@ -33,12 +33,6 @@ void setup() { Robot.drawBMP("lf.bmp", 0, 0); // display background image - // These are some general values that work for line following - Robot.lineFollowConfig(11, 5, 50, 10); - - //set the motor board into line-follow mode - Robot.setMode(MODE_LINE_FOLLOW); - Robot.playFile("chase.sqm"); // play a song from the SD card // add the instructions @@ -46,6 +40,12 @@ void setup() { Robot.text("Press the middle\n button to start...", 5, 61); Robot.waitContinue(); + // These are some general values that work for line following + Robot.lineFollowConfig(11, 5, 50, 10); + + //set the motor board into line-follow mode + Robot.setMode(MODE_LINE_FOLLOW); + // start Robot.fill(255, 255, 255); Robot.stroke(255, 255, 255);