Feedback control · University · about 25 min
Setpoint, error, controller, plant, measurement: the block diagram and the names.
[1 mark]The first loop is run on a list of distances instead of the sensor. What does it print?
TARGET = 20.0
for d in (60, 45, 30, 22, 18):
error = d - TARGET
print(error, max(-50, min(50, 2.0 * error)))[1 mark]With error = distance() - TARGET, positive drive() forwards, and the gain made negative by mistake, what happens?
[1 mark]When does open loop control work?
[1 mark]Follow a signal once round the feedback loop, starting at the comparison.
Number the lines 1 to 5 to put them in the right order.
plantsensorerror = setpoint compared with measurementcontrolleractuator[1 mark]Raising the gain of this loop typically buys which two qualities?
Tick every answer that is true.
[1 mark]In the lesson's table, what is the name for the robot and the mat, the thing being controlled?
Settle 20 cm from the wall, plotting the error as you go. The wall's face is 150 cm up the mat and the robot starts at 60.
from bugbot import * connect() TARGET = 20.0
Plan your program here, then type it in and press Run.
distance() and see whether the loop is smoother, slower, or both.