Code covered by the MathWorks Limited License
-
BluetoothRead(port)
Copyright 2010 The MathWorks, Inc.
-
BluetoothWrite(port)
Copyright 2010 The MathWorks, Inc.
-
InitAccessorBlock(varargin)
InitAccessorBlock
-
InitDeviceSFunBlock(mdl)
InitDeviceSFunBlock
-
InitInterfaceBlock(varargin)
InitInterfaceBlock
-
USBread()
Copyright 2010 The MathWorks, Inc.
-
USBreadColorSensor()
Copyright 2010 The MathWorks, Inc.
-
USBreadCompassSensor()
Copyright 2010 The MathWorks, Inc.
-
USBreadIRSeeker()
Copyright 2010 The MathWorks, Inc.
-
USBwrite()
Copyright 2010 The MathWorks, Inc.
-
clearNXTSignalObjects
clearNXTSignalObjects
-
createNXTSignalObject(varargi...
createNXTSignalObject
-
csc_registration(action)
Copyright 1994-2006 The MathWorks, Inc.
-
ecrobotnxtsetup(varargin)
ECROBOTNXTSETUP
-
makeInfo=rtwmakecfg()
RTWMAKECFG adds include and source directories to rtw make files.
-
nxtbuild(varargin)
nxtbuild
-
nxtconfig(varargin)
nxtconfig
-
nxtupload
NXTUPLOAD
-
set_fcncallname(varargin)
set_fcncallname
-
sfunxymap2(t,x,u,flag,ax,map)
sfunxymap2
-
slblocks
slblocks
-
writenxtdisplay(varargin)
writenxtdisplay
-
writevrtrack(varargin)
writevrtrack
-
nxtusb(varargin)
NXTUSB Constructor
-
w32serial.m
-
FrequencyList.m
-
SoundList.m
-
load_logdata.m
-
make_mex.m
-
param.m
-
param.m
-
ExternalSources
-
TestBluetoothRx
-
TestBluetoothTx
-
TestFloatingPoint
-
TestHiTechnicColorSensor
-
TestHiTechnicCompassSensor
-
TestHiTechnicIRSeeker
-
TestHiTechnicPrototypeSensor
-
TestHiTechnicSensors
-
TestMotorJSP
-
TestMotorOSEK
-
TestNXTGamePad
-
TestNxtColorSensor
-
TestNxtLightSensor
-
TestSoundTone
-
TestSoundWAV
-
TestUSB_Rx
-
TestUSB_Tx
-
TestUltrasonicSensor
-
ecrobot_nxt_lib
-
joystick_ctrl
-
master_ctrl
-
nxt2nxt
-
nxtmouse
-
nxtmouse_ctrl
-
nxtracer
-
nxtracer_ctrl
-
slave_ctrl
-
steeringwheel_ctrl
-
View all files
from
Embedded Coder Robot NXT Demo
by Takashi Chikamasa
Offers an enjoyable Model-Based Design experience using Simulink models with Lego robots
|
| makeInfo=rtwmakecfg()
|
function makeInfo=rtwmakecfg()
%RTWMAKECFG adds include and source directories to rtw make files.
% makeInfo=RTWMAKECFG returns a structured array containing
% following field:
% makeInfo.includePath - cell array containing additional include
% directories. Those directories will be
% expanded into include instructions of rtw
% generated make files.
%
% makeInfo.sourcePath - cell array containing additional source
% directories. Those directories will be
% expanded into rules of rtw generated make
% files.
makeInfo.includePath = {};
makeInfo.sourcePath = {};
makeInfo.linkLibsObjs = {};
%<Generated by S-Function Builder 3.0. DO NOT REMOVE>
sfBuilderBlocksByMaskType = find_system(bdroot,'MaskType','S-Function Builder');
sfBuilderBlocksByCallback = find_system(bdroot,'OpenFcn','sfunctionwizard(gcbh)');
sfBuilderBlocks = {sfBuilderBlocksByMaskType{:} sfBuilderBlocksByCallback{:}};
sfBuilderBlocks = unique(sfBuilderBlocks);
if isempty(sfBuilderBlocks)
return;
end
for idx = 1:length(sfBuilderBlocks)
sfBuilderBlockNameMATFile{idx} = get_param(sfBuilderBlocks{idx},'FunctionName');
sfBuilderBlockNameMATFile{idx} = ['.' filesep 'SFB__' char(sfBuilderBlockNameMATFile{idx}) '__SFB.mat'];
end
sfBuilderBlockNameMATFile = unique(sfBuilderBlockNameMATFile);
for idx = 1:length(sfBuilderBlockNameMATFile)
if exist(sfBuilderBlockNameMATFile{idx})
loadedData = load(sfBuilderBlockNameMATFile{idx});
if isfield(loadedData,'SFBInfoStruct')
makeInfo = UpdateMakeInfo(makeInfo,loadedData.SFBInfoStruct);
clear loadedData;
end
end
end
function updatedMakeInfo = UpdateMakeInfo(makeInfo,SFBInfoStruct)
updatedMakeInfo = {};
if isfield(makeInfo,'includePath')
if isfield(SFBInfoStruct,'includePath')
updatedMakeInfo.includePath = {makeInfo.includePath{:} SFBInfoStruct.includePath{:}};
else
updatedMakeInfo.includePath = {makeInfo.includePath{:}};
end
end
if isfield(makeInfo,'sourcePath')
if isfield(SFBInfoStruct,'sourcePath')
updatedMakeInfo.sourcePath = {makeInfo.sourcePath{:} SFBInfoStruct.sourcePath{:}};
else
updatedMakeInfo.sourcePath = {makeInfo.sourcePath{:}};
end
end
if isfield(makeInfo,'linkLibsObjs')
if isfield(SFBInfoStruct,'additionalLibraries')
updatedMakeInfo.linkLibsObjs = {makeInfo.linkLibsObjs{:} SFBInfoStruct.additionalLibraries{:}};
else
updatedMakeInfo.linkLibsObjs = {makeInfo.linkLibsObjs{:}};
end
end
|
|
Contact us at files@mathworks.com