[xDATA]: fix non working Data gathering functions in MATLAB. Matlab does not know the istrue() function. Further the java readData() function was misspelled.

This commit is contained in:
oberion
2016-01-27 13:10:29 +01:00
parent 76b6d84a86
commit 2c2e4c2674
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ import XPlaneConnect.*
%% Get client %% Get client
global clients; global clients;
if ~exist('socket', 'var') if ~exist('socket', 'var')
assert(istrue(length(clients) < 2), '[readDATA] ERROR: Multiple clients open. You must specify which client to use.'); assert(isequal((length(clients) < 2),1), '[readDATA] ERROR: Multiple clients open. You must specify which client to use.');
if isempty(clients) if isempty(clients)
socket = openUDP(); socket = openUDP();
else else
@@ -46,7 +46,7 @@ if ~exist('socket', 'var')
end end
%% Get data %% Get data
result.raw = socket.readDATA(); result.raw = socket.readData();
%% Format data %% Format data
rows = (length(result.raw) - 5) / 9; rows = (length(result.raw) - 5) / 9;

View File

@@ -19,7 +19,7 @@ import XPlaneConnect.*
%% Get client %% Get client
global clients; global clients;
if ~exist('socket', 'var') if ~exist('socket', 'var')
assert(istrue(length(clients) < 2), '[selectDATA] ERROR: Multiple clients open. You must specify which client to use.'); assert(isequal((length(clients) < 2),1), '[selectDATA] ERROR: Multiple clients open. You must specify which client to use.');
if isempty(clients) if isempty(clients)
socket = openUDP(); socket = openUDP();
else else