- :-

Topics Covered

  • Adjusting the Turn for Angle Behavior
  • Lesson Links

    Check Your Understanding:
    1. 1. Which of the following factors contributes to the "overturning" problem?
    2. Physical momentum
      Latency
      Both of the above
      None of the above
    3. 2. Which of the following workarounds can help to reduce the "overturning" problem?
    4. Replace the Gyro sensor
      Telling the robot to wait until a value that comes "before" the one you actually want
      Use a different numbered ports
      Press the cancel button as soon as it completed its turn
    Try It!
    Try it! 1

    Right Turns?

    Does the same waitUntil Command block work for right turns?

    Reverse the motor power levels in your program to turn 90 degrees to the right instead. Try it!


    Hint: To turn right, the left motor (motor1) should spin forward (positive power),
    and right motor (motor6) should spin backward (negative power).

    Make these changes to the part of your program as shown below.

    What happens?
    It spins forever! For the VEX IQ, turning to the right actually makes the value negative! REMEMBER THIS FOR THE FOLLOWING MINI-CHALLENGE!
    Did You Know?

    Did you know?

    How Gyro Sensor Works

    The VEX IQ Gyro Sensor is a MEMS Sensor (Micro- ElectroMechanical System)

    Did you know?

    turnLeft/turnRight with Gyro Sensor
    Why can't a programmer cannot just use the turnLeft and turnRight commands with the Gyro Sensor?
    • Both turnLeft and turnRight are controlled by degrees, time, and wheel rotations.
    • These commands must run until "completed", before moving onto the next command.
    • The setMotor command starts up a motor at a set speed, then allows robot to run the next command.