Browse Source

use the new interfaces to receive the data

Sven Czarnian 3 years ago
parent
commit
eba9e2deab
1 changed files with 4 additions and 3 deletions
  1. 4 3
      aman/com/Euroscope.py

+ 4 - 3
aman/com/Euroscope.py

@@ -26,11 +26,12 @@ class ReceiverThread(Thread):
                 msg = self.Socket.recv(zmq.NOBLOCK)
 
                 # parse the received message
-                report = AircraftReport_pb2.AircraftReport()
+                report = Communication_pb2.AircraftUpdate()
                 report.ParseFromString(msg)
 
-                # try to associate the received aircraft to an airport
-                self.AMAN.updateAircraftReport(report)
+                # try to associate the received aircrafts to airports
+                for inbound in report.reports:
+                    self.AMAN.updateAircraftReport(inbound)
 
             except zmq.ZMQError as error:
                 if zmq.EAGAIN == error.errno: