I'm trying to remotely control X-Plane via a Raspberry Pi using Python. I'm trying to control the gear up/down using DREF commands, but I'm not sure that this is correct.
I am sending the following message to turn on the pitot heater (just as a try):
UDP target IP: 10.0.0.5 (machine running X-plane)
UDP target port: 49000
message: b'DREF\x00\x01\x00\x00\x00sim/cockpit/switches/pitot_heat_on\x00\' (padded with zeros to 509 bytes)
This is received by X-plane, but nothing happens. Any hints to what I'm doing wrong or any resource on how to proceed from here? Also what is the difference to sending commands to port 49000 and the DataRefs under the tab "Data Output" under "Settings"?
Thanks for helping out!