From 011ffa2ab34cc4c6996ff5cb9729cfd5a5ecfeb2 Mon Sep 17 00:00:00 2001 From: Xun Yang Date: Sat, 31 Aug 2013 17:21:39 +0200 Subject: [PATCH] Added line follow parameters for older robots. "(14,9,50,10)" fits better for robots that has "TK" markings on top. --- .../examples/explore/R02_Line_Follow/R02_Line_Follow.ino | 3 ++- .../Robot_Control/examples/explore/R10_Rescue/R10_Rescue.ino | 2 +- 2 files changed, 3 insertions(+), 2 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 27402e9b5..2e37e95d7 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 @@ -42,9 +42,10 @@ void setup() { // These are some general values that work for line following // uncomment one or the other to see the different behaviors of the robot - // Robot.lineFollowConfig(11, 5, 50, 10); + //Robot.lineFollowConfig(14, 9, 50, 10); Robot.lineFollowConfig(11, 7, 60, 5); + //set the motor board into line-follow mode Robot.setMode(MODE_LINE_FOLLOW); diff --git a/libraries/Robot_Control/examples/explore/R10_Rescue/R10_Rescue.ino b/libraries/Robot_Control/examples/explore/R10_Rescue/R10_Rescue.ino index 4f0e8223c..717e301e5 100644 --- a/libraries/Robot_Control/examples/explore/R10_Rescue/R10_Rescue.ino +++ b/libraries/Robot_Control/examples/explore/R10_Rescue/R10_Rescue.ino @@ -54,7 +54,7 @@ void setup(){ // use this to calibrate the line following algorithm // uncomment one or the other to see the different behaviors of the robot - // Robot.lineFollowConfig(11, 5, 50, 10); + // Robot.lineFollowConfig(14, 9, 50, 10); Robot.lineFollowConfig(11, 7, 60, 5); // run the rescue sequence