power up threashold reduced
This commit is contained in:
parent
56395c7f0b
commit
24f263f9fb
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user