24 lines
610 B
Matlab
24 lines
610 B
Matlab
function startup
|
|
|
|
p = slproject.getCurrentProject;
|
|
|
|
projectRoot = p.RootFolder;
|
|
% Set the location of slprj to be the "work" folder of the current project:
|
|
myCacheFolder = fullfile(projectRoot, 'work');
|
|
if ~exist(myCacheFolder, 'dir')
|
|
mkdir(myCacheFolder)
|
|
end
|
|
Simulink.fileGenControl('set', 'CacheFolder', myCacheFolder, ...
|
|
'CodeGenFolder', myCacheFolder);
|
|
|
|
cd([projectRoot '/libraries/hpm6750ap_tsp']);
|
|
hpm6750ap_tsp_init;
|
|
cd(projectRoot);
|
|
|
|
sl_refresh_customizations;
|
|
disp(ENUM_GPS_FIXTYPE.FIX_3D);
|
|
assignin('base','mdl_name','sunny360vfe');
|
|
getParamsfromExcel2WS('sunny360vfe_params_ctm.xlsx');
|
|
end
|
|
|