Stop sending errors
This commit is contained in:
parent
4b275b0f43
commit
ac5acdf46d
|
@ -3,7 +3,7 @@ ERROR_THRESHOLD = 350
|
||||||
OPEN_THRESHOLD = 190
|
OPEN_THRESHOLD = 190
|
||||||
CLOSED_THRESHOLD = 6*7
|
CLOSED_THRESHOLD = 6*7
|
||||||
CLOSED_WANT = 4*7
|
CLOSED_WANT = 4*7
|
||||||
MIN_IDLE_TIME = 0
|
MIN_IDLE_TIME = 0.5
|
||||||
|
|
||||||
UPDATE_RATE = 1
|
UPDATE_RATE = 1
|
||||||
MAX_UPDATE_RATE = 20
|
MAX_UPDATE_RATE = 20
|
||||||
|
|
|
@ -74,9 +74,9 @@ class Control(util.Loggable):
|
||||||
if self.position() < constants.CLOSED_THRESHOLD:
|
if self.position() < constants.CLOSED_THRESHOLD:
|
||||||
self.state(state.CLOSE)
|
self.state(state.CLOSE)
|
||||||
self._control_update.notify()
|
self._control_update.notify()
|
||||||
elif self.position() > constants.ERROR_THRESHOLD:
|
#elif self.position() > constants.ERROR_THRESHOLD:
|
||||||
self.state(state.ERROR)
|
# self.state(state.ERROR)
|
||||||
self._control_update.notify()
|
# self._control_update.notify()
|
||||||
elif self.position() > constants.OPEN_THRESHOLD:
|
elif self.position() > constants.OPEN_THRESHOLD:
|
||||||
self.state(state.OPEN)
|
self.state(state.OPEN)
|
||||||
self._control_update.notify()
|
self._control_update.notify()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user