Files
XPlaneConnectCSP/TestScripts/MATLAB Tests/setConnTest.m
2015-03-27 08:43:20 -07:00

20 lines
416 B
Matlab

function setConnTest( )
disp('Not Functional Yet!')
%setConnTest Summary of this function goes here
% Detailed explanation goes here
addpath('../../MATLAB')
import XPlaneConnect.*
DREFS = {'sim/cockpit/switches/gear_handle_status'};
setConn(49055);
result = requestDREF(DREFS);
assert(isequal(length(result),1),'setConnTest: requestDREF unsucessful-wrong number of elements returned');
setConn(49009);
end