Commit 74c09a69 authored by Luca Cristaldi's avatar Luca Cristaldi

fix ModelRocket send

do not map twice
parent 8702c4f2
......@@ -10,7 +10,7 @@ class ModelRocket:
stage_map = {0:0,1:1,2:2,3:3}
def send(self,stage):
self.socket.send("%d %d" % (self.topic, self.stage_map[stage]))
self.socket.send("%d %d" % (self.topic, stage))
def __init__(self,port=5556):
context = zmq.Context()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment