File tree 1 file changed +6
-6
lines changed
libraries/Robot_Control/examples/explore/R02_Line_Follow
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,19 @@ void setup() {
33
33
34
34
Robot.drawBMP (" lf.bmp" , 0 , 0 ); // display background image
35
35
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
-
42
36
Robot.playFile (" chase.sqm" ); // play a song from the SD card
43
37
44
38
// add the instructions
45
39
Robot.text (" Line Following\n\n place the robot on\n the track and \n see it run" , 5 , 5 );
46
40
Robot.text (" Press the middle\n button to start..." , 5 , 61 );
47
41
Robot.waitContinue ();
48
42
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
+
49
49
// start
50
50
Robot.fill (255 , 255 , 255 );
51
51
Robot.stroke (255 , 255 , 255 );
You can’t perform that action at this time.
0 commit comments