Tweak thresholds and sliding window size

Increasing sliding window size makes it less sensitive to change, which
makes it take a little longer to register that the dryer is on. This
allows for short bursts of acceleration due to opening/closing the door
and loading clothes.
This commit is contained in:
Ian Adam Naval 2015-09-12 01:28:08 -04:00
parent b83c342a81
commit 4ab145c62a

View File

@ -24,8 +24,8 @@ Ianonavy Bot
"""
G_RANGE = 2
INTERVAL = 0.005 # seconds
WINDOW_SIZE = 40 # intervals
THRESHOLD = 0.003 # G's
WINDOW_SIZE = 1000 # intervals
THRESHOLD = 0.025 # G's
MAX_EMAIL_FREQUENCY = 60 # seconds