Skip to content

Commit

Permalink
a couple typos
Browse files Browse the repository at this point in the history
  • Loading branch information
eastein committed Sep 26, 2012
1 parent 2224727 commit cca0b47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chillmon
Expand Up @@ -44,7 +44,7 @@ class PID(object) :

self.fP = None
self.fI = None
self.fD = None
self.fD = 0.0
self.fPID = None

self.fTemp = None
Expand All @@ -63,9 +63,9 @@ class PID(object) :
'err' : nv(self.fError),
'ierr' : nv(self.fIError),
'derr' : nv(self.fDError),
'p' : nv(self.fP)
'i' : nv(self.fI)
'd' : nv(self.fD)
'p' : nv(self.fP),
'i' : nv(self.fI),
'd' : nv(self.fD),
'pid' : nv(self.fPID)
}

Expand Down Expand Up @@ -111,7 +111,7 @@ class PID(object) :
self.events.append((now, False))
print time.ctime(), 'no chilling, pid output way low. just turning off'
else :
off_sec = (1.0 - min(self.fPID, 1.0)) * self.fPeriod`
off_sec = (1.0 - min(self.fPID, 1.0)) * self.fPeriod
off_sec = max(off_sec, self.fMinOff) # 3 minute minimum to be off
on_sec = self.fPeriod - off_sec

Expand Down

0 comments on commit cca0b47

Please sign in to comment.