- refactored
git-svn-id: http://moon:8086/svn/projects/HendiControl@380 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -3,10 +3,13 @@ import math
|
||||
|
||||
|
||||
class TempSensorSim(ATemperatureSensor):
|
||||
def __init__(self, name):
|
||||
super(TempSensorSim, self).__init__(name)
|
||||
def name(self):
|
||||
return "FakeTemp"
|
||||
|
||||
def __init__(self):
|
||||
self.count = 0
|
||||
self.freq = 0.2
|
||||
self.log("Created")
|
||||
|
||||
def temperature(self):
|
||||
self.count += 1
|
||||
|
||||
Reference in New Issue
Block a user