Feedback control · University · about 30 min
Removing the error that P leaves behind, and the windup that comes with it.
[1 mark]A PI controller has settled exactly on target. Which term is supplying the command?
[1 mark]A constant 4 cm error is held for five ticks. What does this print?
KP, KI, DT = 1.6, 0.5, 0.1
integral = 0.0
for tick in range(5):
error = 4.0
integral += error * DT
print(round(KP * error + KI * integral, 2))[1 mark]Using the lesson's rule of thumb, how many seconds does the integral take to contribute as much as the proportional term when Kp = 1.6 and Ki = 0.5? Give one decimal place.
[1 mark]Which of these are the standard defences against integral windup given in the lesson?
Tick every answer that is true.
[1 mark]An obstacle holds the robot at 40 cm while the target is 25 cm. Ten seconds later it is removed and the robot charges far past the target. Why?
[1 mark]The error is in cm, the command in percent, and time in seconds. What are the units of Ki?
[1 mark]The robot sails slowly past the target, turns round, and sails past again with large, slow swings. Which gain is the likely cause?
Settle exactly 25 cm from the wall, within 3 cm, from fourteen seconds onwards. Proportional control alone at a gentle gain will not do it: at Kp = 1.5 it stops about 8 cm short, because this drive does nothing below about 15 percent. Plot error and i term.
from bugbot import * connect() KP, KI = 1.5, 0.8 TARGET = 25.0 DT = 0.1 integral = 0.0
Plan your program here, then type it in and press Run.
Ki = 0 and report the offset the robot settles at.