Exemplo n.º 1
0
    def __init__(self):
        threading.Thread.__init__(self)
        self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        self.sock.settimeout(3.0)

        self.avionics = Avionics()
        self.active = True

        self.datarefs = {}  # key = index, value = dataref
        self.datarefidx = 0  # first index is 0

        self.UDP_PORT = 49000
        #        self.UDP_ADDR = "192.168.178.87"
        self.UDP_ADDR = "127.0.0.1"

        self.xplaneValues = {}
Exemplo n.º 2
0
    def __init__(self):
        threading.Thread.__init__(self)
        self.avionics = Avionics()
        self.active = True
        self.connected = False

        self.pdata = pyuipc.prepare_data([
            (0x6010, "f"),
            (0x6018, "f"),
            (0x6020, "f"),
            (0x6030, "f"),
            (0x6040, "f"),
            (0x2de0, "f"),
            (0x2de8, "f"),
            (0x0e8c, "h"),
            (0x0bc8, "H"),
            (0x0be8, "u"),
            (0x0896, "H"),
            (0x092e, "H"),
            (0x09c6, "H"),
            (0x0a5e, "H"),
        ], True)