From d2282c76951e885175c6bf08ffd42cb52ff6feb3 Mon Sep 17 00:00:00 2001 From: Jason Watkins Date: Fri, 1 May 2015 14:26:12 -0700 Subject: [PATCH] Added check to MATLAB example to ensure connection to X-Plane. --- MATLAB/Example/Example.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MATLAB/Example/Example.m b/MATLAB/Example/Example.m index 9803791..f25e848 100644 --- a/MATLAB/Example/Example.m +++ b/MATLAB/Example/Example.m @@ -11,6 +11,10 @@ import XPlaneConnect.* disp('xplaneconnect Example Script-'); disp('Setting up Simulation'); Socket = openUDP(49005); + +%% Ensure connected +getDREFs('sim/test/test_float') + %% Set position of the player aircraft disp('Setting position'); pauseSim(1);