From 24f263f9fb3ed462de1fb5da0dca748982c55804 Mon Sep 17 00:00:00 2001 From: tkl Date: Tue, 27 Dec 2016 19:20:44 +0100 Subject: [PATCH] power up threashold reduced --- src/gate/gate_state.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gate/gate_state.py b/src/gate/gate_state.py index af349ee..627f516 100644 --- a/src/gate/gate_state.py +++ b/src/gate/gate_state.py @@ -29,9 +29,9 @@ LIGHT_SENSOR_I2C_ADDRESS = 0x23 POWER_SENSOR_I2C_BUS = 1 POWER_SENSOR_I2C_ADDRESS = 0x40 -CONSECUTIVE_CURRENT_READS = 1000 +POWER_CONSECUTIVE_READS = 1000 -MAX_ENGINE_POWER = {"up":330, "down":300} +MAX_ENGINE_POWER = {"up":310, "down":300} MAX_GATE_RUNTIME = {"open":300, "close":250} @@ -53,7 +53,7 @@ class GateState(object): self.__gate_handler = GateHandler() self.__power_sensor = PowerSensor(POWER_SENSOR_I2C_BUS, \ POWER_SENSOR_I2C_ADDRESS) - self.__power_data = DataBuffer(CONSECUTIVE_CURRENT_READS) + self.__power_data = DataBuffer(POWER_CONSECUTIVE_READS) self.__gate_move_timeout = 0 self.__light_read_timeout = 0