power up threashold reduced

This commit is contained in:
tkl 2016-12-27 19:20:44 +01:00 committed by Thomas Klaehn
parent 56395c7f0b
commit 24f263f9fb

View File

@ -29,9 +29,9 @@ LIGHT_SENSOR_I2C_ADDRESS = 0x23
POWER_SENSOR_I2C_BUS = 1 POWER_SENSOR_I2C_BUS = 1
POWER_SENSOR_I2C_ADDRESS = 0x40 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} MAX_GATE_RUNTIME = {"open":300, "close":250}
@ -53,7 +53,7 @@ class GateState(object):
self.__gate_handler = GateHandler() self.__gate_handler = GateHandler()
self.__power_sensor = PowerSensor(POWER_SENSOR_I2C_BUS, \ self.__power_sensor = PowerSensor(POWER_SENSOR_I2C_BUS, \
POWER_SENSOR_I2C_ADDRESS) POWER_SENSOR_I2C_ADDRESS)
self.__power_data = DataBuffer(CONSECUTIVE_CURRENT_READS) self.__power_data = DataBuffer(POWER_CONSECUTIVE_READS)
self.__gate_move_timeout = 0 self.__gate_move_timeout = 0
self.__light_read_timeout = 0 self.__light_read_timeout = 0