From 1431438a2b0f3fafbafb61a4a15296164dadf5e1 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 4 Apr 2009 16:22:53 +0200 Subject: * digital/asserv: - added second auxiliary motor support. --- digital/asserv/tools/asserv/mex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'digital/asserv/tools/asserv/mex.py') diff --git a/digital/asserv/tools/asserv/mex.py b/digital/asserv/tools/asserv/mex.py index c673e8e0..b8fb7c31 100644 --- a/digital/asserv/tools/asserv/mex.py +++ b/digital/asserv/tools/asserv/mex.py @@ -55,7 +55,7 @@ class Mex: class PWM (Observable): """Motor PWM. - - pwm: current PWM value (hardware unit). + - pwm: current PWM values (hardware unit). """ @@ -65,7 +65,7 @@ class Mex: node.register (ID_PWM, self.__handle) def __handle (self, msg): - self.pwm = msg.pop ('hhh') + self.pwm = msg.pop ('hhhh') self.notify () class Aux (Observable): @@ -95,6 +95,6 @@ class Mex: def __init__ (self, node): self.position = self.Position (node) self.pwm = self.PWM (node) - self.aux = (self.Aux (), ) + self.aux = (self.Aux (), self.Aux ()) self.__aux_pack = self.Aux.Pack (node, self.aux) -- cgit v1.2.3