Permalink
Browse files

c

  • Loading branch information...
1 parent 406c935 commit 544344e17c706c5dd03008ffd5987f3b2da25057 @trecouvr trecouvr committed Apr 22, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 arduino/asserv3/clientIRC/asservbot.py
@@ -28,10 +28,10 @@ def send_response(self, canal, id_msg, msg):
if msg.startswith("plot"):
msg_split = msg.split()
- t = int(msg_split[1].strip())
+ t = float(msg_split[1].strip())
x = float(msg_split[2].strip())
v = float(msg_split[3].strip())
- pwm = int(msg_split[4].strip())
+ pwm = float(msg_split[4].strip())
self.t.append(t/1000)
self.x.append(x)
self.v.append(v)
@@ -58,6 +58,12 @@ def cmd_testasserv_show(self, **kwargs):
title('title')
grid(True)
show()
+
+ def cmd_reset_plot(self, **kwargs):
+ self.t = []
+ self.x = []
+ self.v = []
+ self.pwm = []
if __name__ == "__main__":
arduinobot.run(

0 comments on commit 544344e

Please sign in to comment.