summaryrefslogtreecommitdiffhomepage
path: root/host/simu/robots/guybrush
diff options
context:
space:
mode:
Diffstat (limited to 'host/simu/robots/guybrush')
-rw-r--r--host/simu/robots/guybrush/model/clamps.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/simu/robots/guybrush/model/clamps.py b/host/simu/robots/guybrush/model/clamps.py
index 35df7246..6a046d42 100644
--- a/host/simu/robots/guybrush/model/clamps.py
+++ b/host/simu/robots/guybrush/model/clamps.py
@@ -63,7 +63,10 @@ class Clamps (Observable):
self.notify ()
def __lower_clamp_notified (self):
- self.lower_clamp_rotation = self.lower_clamp_motor.angle
+ if self.lower_clamp_motor.angle is None:
+ self.lower_clamp_rotation = None
+ else:
+ self.lower_clamp_rotation = self.lower_clamp_motor.angle + pi
for i, c in enumerate (self.lower_clamp_cylinders):
if c.pos is None:
self.lower_clamp_clamping[i] = None