From c0640f4a2598a8fcc9c90d484c0d8f0b54f03b31 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 30 Mar 2012 23:05:27 +0200 Subject: host/simu/robots/guybrush: reverse clamping meaning --- host/simu/robots/guybrush/model/clamps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/simu/robots') diff --git a/host/simu/robots/guybrush/model/clamps.py b/host/simu/robots/guybrush/model/clamps.py index e99401cd..b5278694 100644 --- a/host/simu/robots/guybrush/model/clamps.py +++ b/host/simu/robots/guybrush/model/clamps.py @@ -44,6 +44,6 @@ class Clamps (Observable): if c.pos is None: self.lower_clamp_clamping[i] = None else: - self.lower_clamp_clamping[i] = (1.0 - - (c.pos - c.pos_in) / (c.pos_out - c.pos_in)) + self.lower_clamp_clamping[i] = ((c.pos - c.pos_in) + / (c.pos_out - c.pos_in)) self.notify () -- cgit v1.2.3