- added abstarct PID APid

- added PidFactory
- use variable args for factory
This commit is contained in:
jens
2021-10-02 11:10:43 +02:00
parent 7111bfd5e2
commit bf019733b2
15 changed files with 117 additions and 26 deletions
+16
View File
@@ -26,11 +26,27 @@
function retval = results()
load brewpi.mat
close all;
figure(1)
set(0, "defaultlinelinewidth", 1.5);
subplot(3,1,1)
plot(time, tc_temp_soll, time, tc_temp_ist); grid
legend("Temp_{soll}","Temp_{ist}")
subplot(3,1,2)
plot(time, tc_temp_ist-tc_temp_soll, "ro"); grid
legend("Temp_{ist} - dTemp_{soll}")
subplot(3,1,3)
plot(time, heater_power); grid
legend("Power_{Heater}")
figure(2)
subplot(3,1,1)
plot(time, tc_temp_soll, time, tc_temp_ist); grid
legend("Temp_{soll}","Temp_{ist}")
subplot(3,1,2)
plot(time, tc_dtemp_soll, time, tc_dtemp_ist, time, tc_dtemp_commanded); grid
legend("dTemp_{soll}","dTemp_{ist}","dTemp_{cmd}")
subplot(3,1,3)