Keep the LEGO robot orientation straight. Proportional Part. Coefficients. Pro Preview

We should multiply the error by a certain number and then add it to the steering of the LEGO Mindstorms Steering block. In this way, by changing the coefficient we change how much/fast should the proportional part influence the steering of the robot. 

  • #669
  • 10 Jan 2018
  • 3:43

Influence of the coefficient

When the robot is oscillating too much - this means that the coefficient for the proportional part is too large. It should be reduced.

When the robot is not returning fast enough to the straight orientation - this means that the coefficient for the proportional part is too small. It should be increased.

Program for keeping the robot straight with the Gyro Sensor (Proportional compensation)

Proportional implementation for keeping the LEGO Mindstorms robot straight. The program will take the value of the Mindstorms Gyro sensor and will apply this value to the steering block. This will make the robot steer in a direction that would put the robot in a straight position again.