Skip to content

Commit e5baff7

Browse files
dcuartiellescmaglie
dcuartielles
authored andcommitted
fixed order in how the commands were executed
1 parent eab4a7e commit e5baff7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libraries/Robot_Control/examples/explore/R02_Line_Follow/R02_Line_Follow.ino

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ void setup() {
3333

3434
Robot.drawBMP("lf.bmp", 0, 0); // display background image
3535

36-
// These are some general values that work for line following
37-
Robot.lineFollowConfig(11, 5, 50, 10);
38-
39-
//set the motor board into line-follow mode
40-
Robot.setMode(MODE_LINE_FOLLOW);
41-
4236
Robot.playFile("chase.sqm"); // play a song from the SD card
4337

4438
// add the instructions
4539
Robot.text("Line Following\n\n place the robot on\n the track and \n see it run", 5, 5);
4640
Robot.text("Press the middle\n button to start...", 5, 61);
4741
Robot.waitContinue();
4842

43+
// These are some general values that work for line following
44+
Robot.lineFollowConfig(11, 5, 50, 10);
45+
46+
//set the motor board into line-follow mode
47+
Robot.setMode(MODE_LINE_FOLLOW);
48+
4949
// start
5050
Robot.fill(255, 255, 255);
5151
Robot.stroke(255, 255, 255);

0 commit comments

Comments
 (0)