Introduction to Robotics/Control Flow/Lab/Teachers: Difference between revisions

wikademia>Whiteknight
wikademia>Whiteknight
Line 17: Line 17:
=== Checklist ===
=== Checklist ===


{{Introduction to Robotics/Page|title=Control Flow Lab|text=
'''Tasks:'''
*Use nested loops to make 3 laps of a square
*Use nested loops to make a zig-zag path
*Move the robot forward 6 inches without using FOR / NEXT loops
*The BoeBot travels 6 inches, stopping for 1 second after every inch (5 stops)
*Use subroutines to make 3 laps of a square
*Use subroutines to make a figure-8
*Use subroutines to make a 4-leaf clover
*Using the code provided in the handout, make the robot follow the straight 12-foot line.


'''Notes:'''
}}


For the last item, Check the code to ensure that the student has not deleted or modified the lines from the provided code, but instead that the student has only added new code to make the robot work.
For the last item, Check the code to ensure that the student has not deleted or modified the lines from the provided code, but instead that the student has only added new code to make the robot work.