В момента ресурсът е наличен само на английски

How to accurately turn with a gyro sensor and a block for accurate turning Pro Preview

As we said one of the most important things in the competition is the knowledge of where is your robot on the field.  When you know where the robot is you can move it to the right direction. But to point the right direction you probably will need to turn the robot in that way. There are different ways to make a turn, but always there with some inaccuracy. To lower it, we've developed a My Block called Accurate Turn.

Необходимо е да се абонирате за FLLCasts.com, за да достъпите това видео

Абонирай се

  • #1323
  • 01 Jun 2019

The Accurate Turn block

There are three input parameters:

  • TurningAngle - The angle on which you want to turn your robot.
  • MotorPower - The power with which you roboti will start rotating
  • CorrectionPower - The power with which your robot will correct it's turning to make it perfect

The important thing here is to know that the MotorPower value must be "high", and the CorrectionPower value should be "low". Can they be the maximal and the minimal value? Yes, of course, but then the initial turn will be very inaccurate and when you try to correct it with the minimal value it will cost you more time. If you rise the CorrectionPower too much, you will fall into a trap, because it will try to fix a small value with a bigger one (e.g., the robot will try to turn 5 degrees left, but the CorrectionPower will be 10 degrees so, it will turn 10 degrees left, after that 10 degrees right and will skip the target angle forever). 

The motors

The Accurate Turn block is working with motors connected on ports A and B. If your motors are connected on different ports, you'll have to edit the block and change ONLY the ports of the move blocks.

Курсове и занятия включващи този Урок

Този Урок е използван в следните курсове и занятия.

Image for FIRST LEGO League (FLL) 2018-2019 Into Orbit Challenge. Solutions and Review
  • 25
  • 64:04
  • 29
Image for Turn Accurately
  • 2
  • 0
  • 6
  • 3d_rotation 1