Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # C/src/xplaneConnect.c # xpcPlugin/XPlaneConnect/mac.xpl # xpcPlugin/xpcPlugin.xcodeproj/project.pbxproj
This commit is contained in:
@@ -24,7 +24,7 @@ int main()
|
|||||||
const char* IP = "127.0.0.1"; //IP Address of computer running X-Plane
|
const char* IP = "127.0.0.1"; //IP Address of computer running X-Plane
|
||||||
XPCSocket sock = openUDP(IP);
|
XPCSocket sock = openUDP(IP);
|
||||||
float tVal[1];
|
float tVal[1];
|
||||||
int tSize;
|
int tSize = 1;
|
||||||
if (getDREF(sock, "sim/test/test_float", tVal, &tSize) < 0)
|
if (getDREF(sock, "sim/test/test_float", tVal, &tSize) < 0)
|
||||||
{
|
{
|
||||||
printf("Error establishing connecting. Unable to read data from X-Plane.");
|
printf("Error establishing connecting. Unable to read data from X-Plane.");
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -365,11 +365,9 @@
|
|||||||
"$(USER_LIBRARY_DIR)/Developer/Xcode/DerivedData/xplaneConnect-asdjuezcjkhojuewbyxhyhabxfwc/Build/Products/Debug",
|
"$(USER_LIBRARY_DIR)/Developer/Xcode/DerivedData/xplaneConnect-asdjuezcjkhojuewbyxhyhabxfwc/Build/Products/Debug",
|
||||||
);
|
);
|
||||||
MACH_O_TYPE = mh_bundle;
|
MACH_O_TYPE = mh_bundle;
|
||||||
<<<<<<< HEAD
|
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
|
||||||
=======
|
|
||||||
ONLY_ACTIVE_ARCH = NO;
|
ONLY_ACTIVE_ARCH = NO;
|
||||||
>>>>>>> master
|
|
||||||
PRODUCT_NAME = mac;
|
PRODUCT_NAME = mac;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
STRIP_INSTALLED_PRODUCT = YES;
|
STRIP_INSTALLED_PRODUCT = YES;
|
||||||
|
|||||||
Reference in New Issue
Block a user