Files
XPlaneConnectCSP/MATLAB/+XPlaneConnect/sendDREF.m
Jason Watkins 238c82454c Merge branch 'release-1.0.1' into develop
Conflicts:
	C/src/xplaneConnect.c
	MATLAB/+XPlaneConnect/XPlaneConnect.jar
	MATLAB/+XPlaneConnect/sendDREF.m
	xpcPlugin/XPlaneConnect/mac.xpl
2015-05-14 13:20:15 -07:00

19 lines
504 B
Matlab

function sendDREF( dref, value, socket )
% sendDREFs Sends a command to X-Plane that sets the given DREF. This
% function is now an alias to sendDREFs. It is kept only for backwards
% compatibility.
%
% Contributors
% [CT] Christopher Teubert (SGT, Inc.)
% christopher.a.teubert@nasa.gov
% [JW] Jason Watkins
% jason.w.watkins@nasa.gov
import XPlaneConnect.*
if ~exist('socket', 'var')
sendDREFs(dref, value)
else
sendDREFs(dref, value, socket)
end
socket.sendDREF(dref, value);