Change color so it can't be red or orange
Red signifies that the robot will colide with itself,
and Orange signifies it's a movement it can't make.
So I changed the color choosing code to set R in RGB
to a value that can't make it orange or red.
Signed-off-by: Maxwell Henderson <mxwhenderson@gmail.com>
Change-Id: I487672416d472e8fa9aee3a0f31a8efd2158acc8
diff --git a/y2023/control_loops/python/graph_edit.py b/y2023/control_loops/python/graph_edit.py
index b4b635a..689401a 100644
--- a/y2023/control_loops/python/graph_edit.py
+++ b/y2023/control_loops/python/graph_edit.py
@@ -332,8 +332,7 @@
set_color(cr, Color(0.0, 0.5, 1.0))
for segment in self.segments:
- color = [0, random.random(), 1]
- random.shuffle(color)
+ color = [0.2, random.random(), random.random()]
set_color(cr, Color(color[0], color[1], color[2]))
segment.DrawTo(cr, self.theta_version)
with px(cr):