Commit e55c3f12 authored by Luca Cristaldi's avatar Luca Cristaldi

delete old send callback

parent 74c09a69
......@@ -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, stage))
self.socket.send("%d %d" % (self.topic, self.stage_map[stage]))
def __init__(self,port=5556):
context = zmq.Context()
......@@ -18,9 +18,6 @@ class ModelRocket:
self.socket.bind("tcp://*:%s" % port)
def send(stage):
rocket.send(stage_map[stage])
if __name__ == "__main__":
conn = krpc.connect()
......
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