mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
Merge pull request #1560 from X-Y/master
Added line follow parameters for older Arduino Robots.
This commit is contained in:
commit
e342e5f9d0
@ -42,9 +42,10 @@ void setup() {
|
|||||||
|
|
||||||
// These are some general values that work for line following
|
// These are some general values that work for line following
|
||||||
// uncomment one or the other to see the different behaviors of the robot
|
// 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);
|
Robot.lineFollowConfig(11, 7, 60, 5);
|
||||||
|
|
||||||
|
|
||||||
//set the motor board into line-follow mode
|
//set the motor board into line-follow mode
|
||||||
Robot.setMode(MODE_LINE_FOLLOW);
|
Robot.setMode(MODE_LINE_FOLLOW);
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ void setup(){
|
|||||||
|
|
||||||
// use this to calibrate the line following algorithm
|
// use this to calibrate the line following algorithm
|
||||||
// uncomment one or the other to see the different behaviors of the robot
|
// 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);
|
Robot.lineFollowConfig(11, 7, 60, 5);
|
||||||
|
|
||||||
// run the rescue sequence
|
// run the rescue sequence
|
||||||
|
Loading…
x
Reference in New Issue
Block a user