microsoft / pxt-ev3

Microsoft MakeCode editor for the LEGO MINDSTORMS EV3 Brick
https://makecode.mindstorms.com/
Other
54 stars 39 forks source link

Rump control #1004

Closed THEb0nny closed 2 years ago

THEb0nny commented 2 years ago

https://github.com/Microsoft/pxt-ev3/blob/master/docs/reference/motors/motor/ramp.md

http://prntscr.com/26lk4le

I'm a bit confused if this is a bug or not. I'm testing a robot with a ramp block. Set the controls to degrees. Calculated the movement for each moment of acceleration, indicated the value and deceleration. It turns out that deceleration is included in value. And I thought it was logical that deceleration is a separate parameter that is responsible for the movement after value. But acceleration is not included in value. As a result, in order to travel the required distance, I had to subtract the deceleration distance from value.

I also noticed that this unit does not regulate the speed of the motors well. The motors do not start together and the robot leans a little.

THEb0nny commented 2 years ago

I missed it, these are all independent steps that are performed one after the other.