- Controller switched to timer mode
git-svn-id: http://moon:8086/svn/projects/HendiControl@258 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -5,7 +5,7 @@ import json
|
||||
from controller import Controller
|
||||
from mass import Mass
|
||||
from stirrer import Stirrer
|
||||
from pololu1376 import Pololu1376
|
||||
#from pololu1376 import Pololu1376
|
||||
|
||||
from matplotlib.pyplot import figure, clf, plot, xlabel, ylabel, xlim, ylim, title, grid, axes, show, subplot
|
||||
|
||||
@@ -15,17 +15,16 @@ def results_plot(self):
|
||||
|
||||
for n in range(0, len(self.time_v)):
|
||||
d = self.time_v[n]
|
||||
v1 = self.theta_raw_v[n]
|
||||
v2 = self.theta_k_v[n]
|
||||
v1 = self.theta_v[n]
|
||||
v2 = self.heatrate_v[n]
|
||||
v3 = self.power_v[n]
|
||||
v4 = self.error_v[n]
|
||||
v5 = self.heatrate_k_v[n]
|
||||
fp.write("{:6.3f} {:6.3f} {:6.3f} {:6.3f} {:6.3f} {:6.3f}\n".format(d, v1, v2, v3, v4, v5))
|
||||
fp.write("{:6.3f} {:6.3f} {:6.3f} {:6.3f} {:6.3f}\n".format(d, v1, v2, v3, v4,))
|
||||
|
||||
fp.close()
|
||||
figure(1)
|
||||
subplot(4, 1, 1)
|
||||
plot(self.time_v, self.theta_raw_v, 'g-', self.time_v, self.theta_k_v, 'r-', linewidth=1)
|
||||
plot(self.time_v, self.theta_v, 'r-', linewidth=1)
|
||||
title('Temperature')
|
||||
grid(True)
|
||||
ylabel('°C')
|
||||
@@ -40,7 +39,7 @@ def results_plot(self):
|
||||
grid(True)
|
||||
ylabel('°C')
|
||||
subplot(4, 1, 4)
|
||||
plot(self.time_v, self.heatrate_k_v, 'r-', linewidth=1)
|
||||
plot(self.time_v, self.heatrate_v, 'r-', linewidth=1)
|
||||
title('Heatrate')
|
||||
grid(True)
|
||||
ylabel('°C/min')
|
||||
|
||||
Reference in New Issue
Block a user