- brewpi: only plot smoothed values
- max31865: no rounding git-svn-id: http://moon:8086/svn/projects/HendiControl@234 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -13,7 +13,7 @@ def results_plot(self):
|
||||
|
||||
figure(1)
|
||||
subplot(4, 1, 1)
|
||||
plot(self.time_v, self.theta_v, 'b-', self.time_v, self.theta_k_v, 'r-', linewidth=1)
|
||||
plot(self.time_v, self.theta_k_v, 'r-', linewidth=1)
|
||||
title('Temperature')
|
||||
grid(True)
|
||||
ylabel('°C')
|
||||
@@ -28,7 +28,7 @@ def results_plot(self):
|
||||
grid(True)
|
||||
ylabel('°C')
|
||||
subplot(4, 1, 4)
|
||||
plot(self.time_v, self.heatrate_v, 'b-', self.time_v, self.heatrate_k_v, 'r-', linewidth=1)
|
||||
plot(self.time_v, self.heatrate_k_v, 'r-', linewidth=1)
|
||||
title('Heatrate')
|
||||
grid(True)
|
||||
ylabel('°C/min')
|
||||
|
||||
@@ -33,7 +33,7 @@ class Max31865(ATemperatureSensor):
|
||||
return digits
|
||||
|
||||
def temperature(self):
|
||||
return round(self.__tempRaw(), 1)
|
||||
return self.__tempRaw()
|
||||
|
||||
def __tempRaw(self):
|
||||
digits = self.read_digits()
|
||||
|
||||
Reference in New Issue
Block a user