Completed Preliminary MATLAB Test Scripts

This commit is contained in:
Chris Teubert
2014-11-28 17:08:41 -08:00
parent 2cb1d541d5
commit 4bfe4fe88d
21 changed files with 256 additions and 19 deletions

View File

@@ -0,0 +1,17 @@
function requestDREFTest( )
%SENDREADTEST Summary of this function goes here
% Detailed explanation goes here
addpath('../../MATLAB')
import XPlaneConnect.*
DREFS = {'sim/cockpit/switches/gear_handle_status',...
'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