Conflicts: C/src/xplaneConnect.c MATLAB/+XPlaneConnect/XPlaneConnect.jar MATLAB/+XPlaneConnect/sendDREF.m xpcPlugin/XPlaneConnect/mac.xpl
19 lines
504 B
Matlab
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); |