From 2781ad249062dac90dd5b86da6b2d54bfa597e7e Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 10 May 2010 08:38:26 +0200 Subject: digital/mimot: add clamp command --- digital/mimot/tools/mimot/mimot.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'digital/mimot/tools/mimot/mimot.py') diff --git a/digital/mimot/tools/mimot/mimot.py b/digital/mimot/tools/mimot/mimot.py index 2844c741..013a85ff 100644 --- a/digital/mimot/tools/mimot/mimot.py +++ b/digital/mimot/tools/mimot/mimot.py @@ -155,6 +155,13 @@ class Proto: self.proto.send ('y', 'BhB', i, pos, self.aseq[i]) self.wait (self.finished, auto = True) + def clamp (self, w, s, pwm): + """Clamp (speed control, then open loop PWM).""" + i = self._index[w] + self.aseq[i] += 1 + self.proto.send ('y', 'BBhB', i, s, pwm, self.aseq[i]) + self.wait (self.finished, auto = True) + def send_param (self): """Send all parameters.""" p = self.param -- cgit v1.2.3