From 4c4d824f6f113c1059bb09a52e35162b86167bac Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Sun, 29 Sep 2019 00:05:27 +0200 Subject: [PATCH] Prepare to merge Glen's changes --- interactions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interactions.py b/interactions.py index ddaa5ce..8153088 100644 --- a/interactions.py +++ b/interactions.py @@ -79,9 +79,9 @@ new_updates = 0 def set_light_hsv(e, color, hit_bridge): command = { - 'hue' : color[0]*lasthue, - 'bri' : color[2]*fullbright, - 'sat' : color[1]*fullsat + 'hue' : int(color[0]*lasthue), + 'bri' : int(color[2]*fullbright), + 'sat' : int(color[1]*fullsat) } if hit_bridge: if b != None: @@ -93,7 +93,7 @@ def set_light_hsv(e, color, hit_bridge): # === interaction parameters === -frame_rate = 24 +frame_rate = 2 ema_weight = 2/(frame_rate+1) inductance = 0.001