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

wikademia>Whiteknight
wikademia>Dr. Eme
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Introduction to Robotics/Nav|Control Flow}}
{{ntnes}}
 
The final result will be a program that can follow a complicated path without needing to be entirely reprogrammed. We will use this program, or modified versions of it in later labs. Ensure that all students properly save their files and notes so that they can be used later. If necessary, ask your students for a digital copy (either saved on a disk, or sent to you via email) for safekeeping.
The final result will be a program that can follow a complicated path without needing to be entirely reprogrammed. We will use this program, or modified versions of it in later labs. Ensure that all students properly save their files and notes so that they can be used later. If necessary, ask your students for a digital copy (either saved on a disk, or sent to you via email) for safekeeping.


Line 16: Line 15:


=== 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.
}}


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.
== Finishing Early ==
== Common Questions ==