Ops Manager Extension: PD Controller
This is the fourth challenge within the Robotics with GoPiGo and Python Curriculum.
Your task is to design a robot program that increases the volume of products that Amazing.com can ship out to its customers on a daily basis without increasing the number of robot pickers it employs.
Learn how to program and calibrate the Line Follower while they try to design an efficient system.
2. Include speed of line drift in the controller alg
With a proportional controller, your stock picker determines the extent of turning based on the line’s distance relative to the central position as follows:
response = multiplier x distance
Try to improve the performance of your stock picker by adjusting your controller code to also take into account the speed with which the line is drifting towards or away from the central position. i.e. program your response value as follows:
response = (multiplier_1 x distance) + (multiplier_2 x speed)
The distance term considers the current situation (where we are now) and the speed term considers the future (where we might end up if we don’t change course). The faster we are drifting from the line, the quicker we may need to correct our course.