Report the average of your three trial distances to your instructor or TA Trial

Report the average of your three trial distances to

This preview shows page 8 - 12 out of 13 pages.

Report the average of your three trial distances to your instructor or TA. Trial 1: ________ Trial 2: ________ Average: __________ Trial 3: ________ Why do you think your trials were different, and different from other teams? List all possible reasons for discrepancies. We’ll revisit this idea when we talk about “robust” designs later this Module. ____________________________________________________________________ ____________________________________________________________________ ____________________________________________________________________ ____________________________________________________________________ TASK 3: MAKING “DECISIONS” WITH SENSORS AND LOOPS Let’s return to the Touch Sensor. Its Boolean input cannot be directly input onto the NXT display the same way that the numerical-value inputs can. One convenient thing about Boolean values is that they can be used to break out of infinite loops. Let’s give those a try. Loops can be drawn in your Block Diagram by selecting NXT Robotics >> Programming >> Structures on the Functions Palette. (This is our first time using icons outside of NXT I/O!) Open a new VI (blank Block Diagram) and draw a While Loop in your Block Diagram. Drop a Motor icon into the While Loop and try to run the program. See Figure 4. What happens?
Image of page 8
Image of page 9
Image of page 10
- 11 - Module 1, LC 3 Figure 7: Basic Display Program with Loop Having a constant attached to the Conditional Terminal is not very exciting. But we do have one other immediate source of Boolean data – the Touch sensor! Activity: Write a program to make your robot’s motors turn on, and then turn off when the Touch sensor is pressed.
Image of page 11
Image of page 12

You've reached the end of your free preview.

Want to read all 13 pages?

  • Fall '14
  • light sensor, Touch sensor, rotation sensor

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes