<-- Back
sendCTRL
Send position and orientation update command to X-Plane over UDP. This requires the X-Plane Connect Plugin to be running
Inputs
- data(1) Latitudinal Stick [-1,1]
- data(2) Longitudinal Stick [-1,1]
- data(3) Pedal [-1, 1]
- data(4) Throttle [-1, 1]
- data(5) Gear (0=up, 1=down)
- data(6) Flaps [0, 1]
- aircraft number (optional): 0=own aircraft
- IP Address (optional): IP Address of the machine that will receive the data as a character array. Default is '127.0.0.1' (local machine)
- port (optional): Port on the receiving machine where the data will be sent. Default is 49009 (XPlaneConnect). In general use 49009 to send to the plugin and 49005 to send to the x-plane udp
Outputs
- status: If there was an error. status<0 means there was an error.
Use
1. import XPlaneConnect.*
2. dataRef = 'sim/aircraft/parts/acf_gear_deploy'; // Landing Gear
3. Value = 0;
4. status = sendDREF(dataRef, Value);
Change Log
10/02/14: [CT] V0.9: Updated to use new xpcPlugin
06/10/13: [CT] Code created
<-- Back