Added check to MATLAB example to ensure connection to X-Plane.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user