Files
XPlaneConnectCSP/TestScripts/MATLAB Tests/requestDREFTest.m
Chris Teubert 0c2e786890 Removed "sim/" auto add feature
Removed “sim/“ auto add feature. There are some drefs (custom/art) that
do not start with “sim/“
2015-04-03 10:47:55 -07:00

18 lines
417 B
Matlab

function requestDREFTest( )
%SENDREADTEST Summary of this function goes here
% Detailed explanation goes here
addpath('../../MATLAB')
import XPlaneConnect.*
DREFS = {'sim/cockpit/switches/gear_handle_status',...
'sim/cockpit2/switches/panel_brightness_ratio'};
result = requestDREF(DREFS);
assert(isequal(length(result),2));
assert(isequal(length(result{1}),1));
assert(isequal(length(result{2}),4));
end