MTK Control System with Current Not Working

It’s because feedback.input2 is a connector and not a variable. You would have to do

feedback.input2.u ~ current_sensor.i

instead.

Why does

connect(current_sensor.i, :y, feedback.input2)

not work?