X-Plane UDP Interface

X-Plane UDP interpreter - Delphi Unit (DCU)
Currently working: X-Plane v.8.xx
Under development: X-Plane v.9
X-Plane UDP Interpreter consists in a Delphi Compiled Unit (DCU) for Delphi 7 and/or B.D.S 2006 that interprets all Data packets received by a simple UDP Server (i.e. Indy TIdUDPServer) and allow to put the new data back to the X-Plane with a simple UDP Client (i.e. Indy TIdUDPClient).
The Unit generates the full packet ready to send.
It implements the TXPlane class with all 125 (x8) data variables in a simple way.
This unit saves the developer to write more than 10,000+ lines of code. (currently 9600 lines for DATA prolouge handling).
With external hardware you can easily control servos and all do you think, as well as read switches and send its states to the simulator.
Example of read (process data when UDP packet arrives):
procedure TForm1.IdUDPServer1UDPRead(Sender: TObject; AData: TBytes; ABinding: TIdSocketHandle);
var
MyEngine1RPMs : single; //Note that all variables in X-Plane are single
MyTaxiLight : boolean; //Offers support to boolean vars, it converts them internally
begin
if XPlane.DataToProcess(AData) then
begin
MyEngine1RPM := XPlane.Engine1.RPM;
MyTaxiLight := XPlane.Switch.Electrical.Lights.TaxiON;
end;
end;
Example of write:
with Xplane do
begin
BeginData(0); //You can specify the Data Index Byte.
Engine1.Generator.Amperes := 5.0;
Battery1.SwitchON := True;
Switch.Electrical.Lights.BeaconON := SpeedButton.Down;
EndData;
end;
IdUDPClient.Send(Xplane.DataToSend); //XPlane.DataToSend is the data packet created

Xplane8 Unit Properties Tree reduced view (Open in new window)
Note that x-plane v8 and v9 use different variables and DCU are not compatible between them.
Prices and demos soon.
Previous page: History Log
Next page: A320 ECAM
