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

# How to precisely turn with acceleration and Motion Sensor from LEGO Education SPIKE Prime ProPreview

In this video tutorial we explore acceleration and deceleration and how to make the robot turn precisely by using acceleration and deceleration. The goal is for us to demonstrate a program that turns the robot to 90 degree. In the first 45 the robot is accelerating and in the second 45 it is decelerating.

• #1927
• 06 Jun 2022
• 11:34

## How to use this tutorial?

Use the program to download it on the robot and run it. Experiment with it. Try to read it and to understand it. Make sure understand what is happening in the program and what is the idea. Move through it with the students and team members and help understand how the program works. Only by reading other peoples programs we get to learn new things that we can use in our programs.

### English

We decelerate and we reach the end. So after each and every if else check we set the movement speed to the speed that we've calculated. Again, while we rotate, we constantly calculate the speed that we want to set to the Motors. If we are in the process of acceleration, which means we are still less than half of our path, then we accelerate. As we pass the half of our path, we start accelerating and we constantly change the speed of the robot. Set movement speed to percent.

The same repeat until block right here is executed but with different signs if we are with a minus angle. So it's the same program, but just with minus angle. And this is how we've implemented our. Own blog for acceleration and deceleration. A blog that you can take and you can use in your programs and you can accelerate and decelerate while turning with the motion sensor, which gives you a pretty good precision. I hope you enjoyed it. And we'll see you in the next tutorial Where we'll do ten consecutive runs.

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

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

• 40
• 188:21
• 19
• 2
• 0
• 1
• 3d_rotation 1