Added support for GETP and GETC to MATLAB client.

This commit is contained in:
Jason Watkins
2015-06-02 14:13:28 -07:00
parent a738414ac1
commit 00b61f6051
8 changed files with 96 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
function getCTRLTest()
%GETCTRLTEST Summary of this function goes here
% Detailed explanation goes here
addpath('../../MATLAB')
import XPlaneConnect.*
values = [10.0, 5.0, -5.0, 0.8, 1.0, 0.5, -1.5];
sendCTRL(values, 0);
actual = getCTRL(0);
assert(isequal(length(actual), length(values)));
for i = 1:length(actual)
assert(abs(actual(i) - values(i)) <1e-4)
end
end