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