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.
- 10 Jan 2018
- Mindstorms Competitions, FIRST LEGO League (FLL), Gyro Sensor, Programming, Physics
- Math, Ev3
- I.Bozhilov, K.Mitov
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.
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.