Template Experiments
Just some starting ideas on what you can do with the robot.
Just some starting ideas on what you can do with the robot.
Uncomment the drivePattern()
function call in the loop, as show below. Remember, //
identifies comments that are not run by the program. So when we remove the //
that line will now run. Upload the edited program to see what happens after you flip the toggle switch on the robot.
Uncomment the driveUpToWall()
function call in the loop, as show below. Comment out the drivePattern()
function like //drivePattern();
Since we don't want to run both functions. Upload the edited program to see what happens after you flip the toggle switch on the robot.
This one requires a line on the floor to follow and may take some adjustments to the function to get it working based on the lighting and brightness of the floor and line.