aboutsummaryrefslogtreecommitdiff
path: root/behaviors/ExpandingColorZones.py
diff options
context:
space:
mode:
Diffstat (limited to 'behaviors/ExpandingColorZones.py')
-rw-r--r--behaviors/ExpandingColorZones.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/behaviors/ExpandingColorZones.py b/behaviors/ExpandingColorZones.py
index 345851e..75be761 100644
--- a/behaviors/ExpandingColorZones.py
+++ b/behaviors/ExpandingColorZones.py
@@ -2,13 +2,14 @@ from operationscore.Behavior import *
from logger import main_log
class ExpandingColorZones(Behavior):
def behaviorInit(self):
- self.mapping = {'r':[(132,0),(255,0,0)], 'g':[(400,0), (0,255,0)],
- 'b':[(668,0),
+ self.mapping = {'s001':[(132,0),(255,0,0)], 's002':[(400,0), (0,255,0)],
+ 's003':[(668,0),
(0,0,255)]}
- self.mappingkey = 'KeyChar'
+ self.mappingkey = 'data'
def processResponse(self, sensorInputs, recursiveInputs):
ret = []
for data in sensorInputs:
+ print data
data = dict(data)
if self.mappingkey in data:
try: