I would like to send airplane state, position, heading, roll, pitch... and see the appropriate view for the current state, couldn't find examples for that.
I'm New to flightgear.
Can someone refer to an example ?
Thanks
UDP_IP = "127.0.0.1"
UDP_PORT = 5500
packed_int = struct.pack("f",33.33)
packed_int += struct.pack("f",33.33)
MESSAGE = packed_int
print ("UDP target IP:", UDP_IP)
print ("UDP target port:", UDP_PORT)
print ("message:", MESSAGE)
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
Users browsing this forum: No registered users and 1 guest