Skip to content

Commit

Permalink
v2p15. Compatible with MF-Swift v2306, passenger density parameterized.
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller01985 committed Sep 18, 2023
1 parent e6efa2f commit d8270c2
Show file tree
Hide file tree
Showing 23 changed files with 12 additions and 5 deletions.

This file was deleted.

Binary file modified Libraries/Vehicle/Body/Human/Human_Models.slx
Binary file not shown.
Binary file modified Libraries/Vehicle/Body/Human/sm_car_data_DriverHuman.xlsx
Binary file not shown.
Binary file modified Libraries/Vehicle/Body/Human/sm_car_data_Passenger.xlsx
Binary file not shown.
Binary file not shown.
Binary file modified Libraries/Vehicle/Driveline/Axle2/Driveline_Axle2_Testrig.slx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Libraries/Vehicle/Steer/Rack/Steer_Column_Test.slx
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -30,6 +30,11 @@ adjust the libraries so that variant can be selected.
3. Modify parameter values in the "Vehicle" data structure in the MATLAB workspace.

### **Release History**
**v2.15 -- September 2023**
1. Mass and inertia of driver and passengers are adjustable
2. Added test harness to check driver and passenger mass
3. Compatible with MF-Swift v2306

**v2.14 -- March 2023**
1. Adjusted hardpoints for all linkage suspensions (shorter control arms, shock placement)
2. Added linkage parameterizations for Sedan Hamba (Five Link Shock to Rear, Split Lower Arm Shock to Front)
Expand Down
Binary file modified Scripts_Data/Data_Vehicle/Presets/Trailer_01.mat
Binary file not shown.
Binary file modified Scripts_Data/Data_Vehicle/Presets/Vehicle_000.mat
Binary file not shown.
Binary file modified Scripts_Data/Data_Vehicle/UI/sm_car_vehcfg.mlapp
Binary file not shown.
4 changes: 2 additions & 2 deletions Scripts_Data/shutdown_sm_car.m
@@ -1,6 +1,6 @@
function shutdown_sm_car
% Startup file for sm_car.slx Example
% Copyright 2019-2022 The MathWorks, Inc.
% Copyright 2019-2023 The MathWorks, Inc.

curr_proj = simulinkproject;

Expand Down Expand Up @@ -36,7 +36,7 @@
custom_code = dir('**/custom_abs.ssc');
cd(custom_code.folder)
cd('..')
bdclose all
bdclose('Custom_lib')
pause(1)
ssc_clean Custom
cd(fileparts(which('sm_car.slx')))
Expand Down
6 changes: 5 additions & 1 deletion Scripts_Data/sm_car_startupMFSwift.m
Expand Up @@ -2,7 +2,7 @@
% DETERMINE IF MF-SWIFT DIRECTORY IS ON PATH
% CHECK IF TOOLBOX ALREADY ON PATH

% Copyright 2014-2022 The MathWorks, Inc.
% Copyright 2014-2023 The MathWorks, Inc.

curr_proj = simulinkproject;
path_preMFSwift = strsplit(path,';');
Expand Down Expand Up @@ -64,6 +64,8 @@
library_path = [curr_proj.RootFolder filesep 'Libraries' filesep 'Vehicle' filesep 'Tire' filesep 'MFSwift' filesep 'MFSwift_2022p1'];
elseif(mfswift_ver==2212)
library_path = [curr_proj.RootFolder filesep 'Libraries' filesep 'Vehicle' filesep 'Tire' filesep 'MFSwift' filesep 'MFSwift_2212'];
elseif(mfswift_ver==2306)
library_path = [curr_proj.RootFolder filesep 'Libraries' filesep 'Vehicle' filesep 'Tire' filesep 'MFSwift' filesep 'MFSwift_2306'];
end
addpath(library_path);
% Add opencrg tools to path
Expand All @@ -88,6 +90,8 @@
library_path = [curr_proj.RootFolder filesep 'Libraries' filesep 'Vehicle' filesep 'Tire' filesep 'MFSwift' filesep 'MFSwift_2022p1'];
elseif(mfswift_ver==2212)
library_path = [curr_proj.RootFolder filesep 'Libraries' filesep 'Vehicle' filesep 'Tire' filesep 'MFSwift' filesep 'MFSwift_2212'];
elseif(mfswift_ver==2306)
library_path = [curr_proj.RootFolder filesep 'Libraries' filesep 'Vehicle' filesep 'Tire' filesep 'MFSwift' filesep 'MFSwift_2306'];
end
if(isempty(library_path))
warning('off','backtrace')
Expand Down
Binary file not shown.

0 comments on commit d8270c2

Please sign in to comment.