02-04-2025, 06:57 AM
Hello everyone.
This morning I assumed that when my "turn right" command is executed, the engine in the browser performs this rotation by changing the robot's angle by 30 degrees per iteration.
So when my SB program receives information that the robot has reached the 90 degrees angle I wanted, and my SB program sends a "stop turning" command, the engine has time to perform one extra step of rotation.
This means that the SB program should send the "stop" command to the engine ONE STEP BEFORE the SB program receives information that the robot has reached the desired position. And we do not need to change the command format that I wrote about in the previous message.
What do you think about this?

This morning I assumed that when my "turn right" command is executed, the engine in the browser performs this rotation by changing the robot's angle by 30 degrees per iteration.
So when my SB program receives information that the robot has reached the 90 degrees angle I wanted, and my SB program sends a "stop turning" command, the engine has time to perform one extra step of rotation.
This means that the SB program should send the "stop" command to the engine ONE STEP BEFORE the SB program receives information that the robot has reached the desired position. And we do not need to change the command format that I wrote about in the previous message.
What do you think about this?