Added check to MATLAB example to ensure connection to X-Plane.

This commit is contained in:
Jason Watkins
2015-05-01 14:26:12 -07:00
parent 472ed4feac
commit d2282c7695

View File

@@ -11,6 +11,10 @@ import XPlaneConnect.*
disp('xplaneconnect Example Script-'); disp('xplaneconnect Example Script-');
disp('Setting up Simulation'); disp('Setting up Simulation');
Socket = openUDP(49005); Socket = openUDP(49005);
%% Ensure connected
getDREFs('sim/test/test_float')
%% Set position of the player aircraft %% Set position of the player aircraft
disp('Setting position'); disp('Setting position');
pauseSim(1); pauseSim(1);