<-- Back

sendPosition

Send position and orientation update command to X-Plane over UDP. This requires the X-Plane Connect Plugin to be running

Inputs

Outputs

Use

1. import XPlaneConnect.*;
2. latlon = [37.4185718,-121.935565]; %Lat,lon of NASA Ames Research Center
3. alt = 500; %meters above sea level
4. orient = [0,20,180]; %Orientation (roll,pitch,yaw/heading). 20 degrees yaw, heading south
5. status = sendPOSI([latlon,alt,orient]); % Set position of own aircraft
6. status2 = sendPOSI([[latlon(1)+0.005,latlon(2)],alt,orient],1); % Set position of aircraft 1

Change Log

10/02/14: [CT] V0.9 Updated to use new xpcPlugin
06/10/13: [CT] Code created

<-- Back