Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
ce2a354
Update HTML files to open models or scripts from hyperlinks. Save all…
isaacito12 Jun 23, 2023
8d8b3eb
Update ChangeLog.md.
isaacito12 Jun 23, 2023
24c6177
Merge branch 'mathworks:R2023a' into R2023a
isaacito12 Sep 27, 2023
bf9ce29
Merge branch 'mathworks:R2023b' into R2023b
isaacito12 Sep 27, 2023
874805e
Minor update of jupyter.ci
isaacito12 Sep 29, 2023
cee137d
Merge branch 'mathworks:R2023b' into R2023b
isaacito12 Oct 11, 2023
ff13218
Merge commit 'cee137d4ee975ad387849db5d843046ad3f6d92a' into R2023b
isaacito12 Oct 11, 2023
c2e04ea
Update PMSM data.
isaacito12 Oct 11, 2023
d639362
Clean up PMSM Motor files.
isaacito12 Oct 11, 2023
d14a0a7
Merge branch 'mathworks:R2023b' into R2023b
isaacito12 Dec 15, 2023
489a5e4
Use buildtools in Battery High Voltage component
isaacito12 Dec 15, 2023
dd63347
Update buildfile.m at the project root.
isaacito12 Dec 15, 2023
7f0ab07
Add buildtool-results folder to the project.
isaacito12 Dec 15, 2023
783f49e
Update .github/workflow/ci.yml file. Set up cache folder.
isaacito12 Dec 16, 2023
0cb43f9
Merge remote-tracking branch 'upstream/R2023b' into R2023b
isaacito12 Apr 5, 2024
b7f5964
Generate Markdowns instead of Jupyter notebooks.
isaacito12 Apr 12, 2024
5a60140
Merge remote-tracking branch 'upstream/R2023b' into R2023b
isaacito12 May 31, 2024
dbe7074
Add Vehicle1D performance design app.
isaacito12 Jun 25, 2024
6677fc0
Update .github/workflows/ci.yml file to use R2024a in Actions.
isaacito12 Jun 25, 2024
d92f043
Update README.md and ChangeLog.md files.
isaacito12 Jun 25, 2024
2eb03c4
Make sure buildtool-based tests all pass
isaacito12 Jun 25, 2024
c01eeed
Merge branch 'mathworks:R2024a' into R2024a
isaacito12 Jun 25, 2024
6539977
Update live script to markdown.
isaacito12 Jun 27, 2024
a69ad0f
Add the project navigator app. Clean up project shortcuts.
isaacito12 Jul 31, 2024
92c258c
Automatically open the project navigator when the project is opened.
isaacito12 Jul 31, 2024
0afb0e9
Update dependency cache file.
isaacito12 Jul 31, 2024
355f328
Attempt to merge conflicts.
isaacito12 Jul 31, 2024
23eadd2
Merge remote-tracking branch 'upstream/R2024a' into R2024a
isaacito12 Jul 31, 2024
d01b07b
Resolve merge conflicts in R2024a branch with upstream/R2024a.
isaacito12 Jul 31, 2024
b2cdc59
Cleanup the repository based on the result of resolving merge conflicts.
isaacito12 Jul 31, 2024
004850e
Update VehicleSpeedReference component: Remove the WLTP drive cycle s…
isaacito12 Aug 1, 2024
a69bbe1
Update everything impacted by the removal of WLTP simulation case. Ma…
isaacito12 Aug 1, 2024
7550667
Merge remote-tracking branch 'upstream/R2024a' into R2024a
isaacito12 Aug 1, 2024
efbfe75
Merge branch 'mathworks:R2024a' into R2024a
isaacito12 Nov 19, 2024
0a7e09b
Create R2024b branch and use R2024b MATLAB.
isaacito12 Nov 19, 2024
68b0a85
Update the project startup code for R2024b.
isaacito12 Nov 19, 2024
2112ed7
Update the project navigation app.
isaacito12 Nov 19, 2024
cc876c1
Remove the WLTP simulation script.
isaacito12 Nov 19, 2024
3999f0c
Update the project main script. Make all buildtool-driven tests pass.
isaacito12 Nov 19, 2024
69bb987
Update the GitHub Actions setup to use R2024b.
isaacito12 Nov 19, 2024
84dc873
Update the API version in the GitHub Actions setup.
isaacito12 Nov 19, 2024
d0243b2
Generate new Markdown files from Live scripts in R2024b.
isaacito12 Nov 19, 2024
53e9860
Update documents such as README.
isaacito12 Nov 20, 2024
f3b953c
Update Vehicle1D component to test exported Markdown files are up to …
isaacito12 Nov 20, 2024
efbff39
Update README and ChangeLog.
isaacito12 Nov 20, 2024
24f5ac3
Merge branch 'mathworks:R2024b' into R2024b
isaacito12 Nov 20, 2024
9199148
Update ci.yml file.
isaacito12 Jan 30, 2025
95437b9
Merge branch 'R2024b' of https://github.com/isaacito12/fork-bev into …
isaacito12 Jan 30, 2025
628a552
Add ci-windows-mac.yml file. Update ci.yml file.
isaacito12 Jan 30, 2025
00436b5
Use separate GitHub Actions workflow files (.github/workflows/*.yml) …
isaacito12 Jan 30, 2025
1ae8bb5
Use Linux and Windows for CI.
isaacito12 Jan 31, 2025
a54351c
Merge branch 'mathworks:R2024b' into R2024b
isaacito12 Mar 26, 2025
18a283b
MotorPmsmFem: Update the link to the shipping example
isaacito12 Mar 26, 2025
8b0fe95
Merge branch 'mathworks:R2024b' into R2024b
isaacito12 Apr 9, 2025
31722b6
Upgrade MotorDriveUnit.
isaacito12 Jun 6, 2025
ed89594
Add LiteApp5.
isaacito12 Jun 6, 2025
c10e211
Remove files and folders that are no longer used because of the upgra…
isaacito12 Jun 6, 2025
a244a90
Update MotorDriveUnit, Vehicle1D, and BEV Project files. Make all tes…
isaacito12 Jun 12, 2025
ed94e11
Merge branch 'R2024b' of https://github.com/isaacito12/fork-bev into …
isaacito12 Jun 12, 2025
b1fd422
Bug fix
isaacito12 Jun 12, 2025
5c8aa7a
Add screenshot files to the project.
isaacito12 Jun 12, 2025
f955d0d
Update Vehicle1DPerformanceDesignApp_Basic and BEVProjectNavigator.
isaacito12 Jun 13, 2025
ca0b017
Merge commit 'a6c55e5acac714cc954737840364a28525098480'
isaacito12 Jun 16, 2025
956a1eb
Upgrade the project to use MATLAB R2025a.
isaacito12 Jun 16, 2025
ec6f8a7
Convert some Live Scripts to plain text version. Clean up some test c…
isaacito12 Jun 16, 2025
5a30b60
Merge branch 'mathworks:R2025a' into R2025a
isaacito12 Jun 17, 2025
ce7a98f
Convert Live Scripts from binary *.mlx files to plain text *.m files.
isaacito12 Jun 26, 2025
f8d4c9f
Upgrade the project to version 3.0. See README.md for the summary of …
isaacito12 Jul 23, 2025
af551c2
Update GitHub Actions setup files.
isaacito12 Jul 23, 2025
1c6d92a
Remove files that were added to git by mistake.
isaacito12 Jul 24, 2025
8f7393b
Update some tests.
isaacito12 Jul 24, 2025
4a18045
Resolve git status and MATLAB project status.
isaacito12 Jul 24, 2025
147102a
Fix test failures.
isaacito12 Jul 24, 2025
b9c86f3
Confirm all tests pass locally.
isaacito12 Jul 24, 2025
949f4a7
Update the .gitignore file to ignore the .buildtool folder.
isaacito12 Jul 28, 2025
7051cab
Update the CheckProject script.
isaacito12 Jul 28, 2025
db8a413
Update the buildfile.m files.
isaacito12 Jul 28, 2025
065d437
Update tests to check that all Markdown files are up to date.
isaacito12 Jul 28, 2025
8f53b71
Update the github actions file.
isaacito12 Jul 28, 2025
9a25e3a
Update a test.
isaacito12 Jul 28, 2025
8bd90b9
Merge branch 'R2025a'
isaacito12 Jul 28, 2025
83d2a59
Update the markdown file.
isaacito12 Jul 29, 2025
557df7c
Merge branch 'upstream/R2025a'
isaacito12 Jul 29, 2025
2afa6bf
Address issues reported by the Code Analyzer.
isaacito12 Jul 29, 2025
a4bad0f
Update the project description and the readme file.
isaacito12 Jul 29, 2025
ff9f052
Fix the hyperlink to the navigation app in the BEV project description.
isaacito12 Jul 29, 2025
f7274d7
Merge commit 'bd3bc32c5ead5eed75fa3490f5733b5281d82aa3'
isaacito12 Jul 29, 2025
a47f46b
Sync with the upstream.
isaacito12 Jul 29, 2025
de8ff0d
Merge branch 'upstream/R2025a'
isaacito12 Jul 29, 2025
8e9e01e
Add a profiling simulation case to the Reducer Basic comopnent. Make …
isaacito12 Jul 31, 2025
29e2214
Add a test for hyperlinks in the project description.
isaacito12 Jul 31, 2025
3fa8405
Remove the dependency on Signal Designer from High Voltage Battery co…
isaacito12 Aug 7, 2025
fc71c43
Remove the dependency on Signal Designer from BEV Controller component.
isaacito12 Aug 8, 2025
85353c1
Remove the dependency on Signal Designer from BEV Controller component.
isaacito12 Aug 8, 2025
fea8b65
Use DAESSC in test models. Check the solver setting during test.
isaacito12 Aug 8, 2025
f8cbedf
Remove custom functions to change subsystem references. Remove Signal…
isaacito12 Aug 18, 2025
1ada2aa
Add an HTML file to the project.
isaacito12 Aug 18, 2025
ef1132d
Add tests for checking MATLAB commands used in hyperlinks in Live Scr…
isaacito12 Aug 19, 2025
882b5bf
Update the project based on the changes made by tests.
isaacito12 Aug 19, 2025
4e3303d
Update the openInProject file.
isaacito12 Aug 19, 2025
a3a956d
Merge branch 'mathworks:R2025a' into R2025a-devel
isaacito12 Aug 20, 2025
f3d30d4
Improve Reducer component resources. Add more tests. Add custom rules…
isaacito12 Aug 22, 2025
489e199
Add a function to check Callback Buttons for setting a referenced sub…
isaacito12 Aug 26, 2025
b9e811c
Improve the check function for linked MATLAB command in Live Script t…
isaacito12 Aug 27, 2025
22bd61f
Add more tests for Signal Tool.
isaacito12 Aug 27, 2025
20468da
Fix the HTML linking issue in Vehicle1D app. Remove the test which is…
isaacito12 Aug 27, 2025
fe0fc77
Add more tests. Isolate test logic from within test functions to inde…
isaacito12 Sep 3, 2025
3cbb037
Close the Live Script which opens during test.
isaacito12 Sep 3, 2025
8a15f9e
Update git status.
isaacito12 Sep 3, 2025
102d2ad
Update git status.
isaacito12 Sep 3, 2025
0e74ad2
Update README.
isaacito12 Sep 3, 2025
eeccff4
Update git status before reverting
isaacito12 Sep 3, 2025
7c4702b
Revert "Update git status before reverting"
isaacito12 Sep 3, 2025
83a8520
Revert "Update README."
isaacito12 Sep 3, 2025
f2efe66
Revert "Update git status."
isaacito12 Sep 3, 2025
d350a53
Revert "Update git status."
isaacito12 Sep 3, 2025
07df222
Make all tests pass locally. Check project. Update git status.
isaacito12 Sep 3, 2025
2a9b516
Update the version number in the README.md file.
isaacito12 Sep 3, 2025
adfe426
Merge remote-tracking branch 'upstream/R2025a' into R2025a-devel
isaacito12 Sep 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
43 changes: 21 additions & 22 deletions BEV/BEV_system_model.mdl

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions BEV/Model-Basic/BEV_setup_Basic.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ function BEV_setup_Basic(NameValuePair)
end % if

set_param(model_name + "/Longitudinal Vehicle", ReferencedSubsystem = "Vehicle1D_Basic_refsub");
FileTool2.evalMFile("Vehicle1D_Basic_params")
FileTool3.evalMFile("Vehicle1D_Basic_params")

set_param(model_name + "/High Voltage Battery", ReferencedSubsystem = "BatteryHV_Basic_refsub");
FileTool2.evalMFile("BatteryHV_Basic_params")
FileTool3.evalMFile("BatteryHV_Basic_params")

set_param(model_name + "/Motor Drive Unit", ReferencedSubsystem = "MotorDriveUnit_Basic_refsub");
FileTool2.evalMFile("MotorDriveUnit_Basic_params")
FileTool3.evalMFile("MotorDriveUnit_Basic_params")

set_param(model_name + "/Reduction Gear", ReferencedSubsystem = "Reducer_Basic_refsub");
FileTool2.evalMFile("Reducer_Basic_params")
FileTool3.evalMFile("Reducer_Basic_params")

set_param(model_name + "/Controller and Environment/BEV Controller", ReferencedSubsystem = "BEVController_Basic_refsub");
FileTool2.evalMFile("BEVController_Basic_params")
FileTool3.evalMFile("BEVController_Basic_params")

end % function
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function markdown_files_exist(testcase)

% Select Live Scripts.
% https://www.mathworks.com/help/matlab/ref/matlab.buildtool.io.filecollection.select.html
live_script_file_collection = select(mfile_collection, @(p) FileTool2.isPlainTextLiveScript(p));
live_script_file_collection = select(mfile_collection, @(p) FileTool3.isPlainTextLiveScript(p));

[folder_path, base_file_name, ~] = fileparts(live_script_file_collection.paths');
markdown_files = fullfile(folder_path, "markdown", base_file_name + ".md");
Expand All @@ -60,12 +60,12 @@ function markdown_files_exist(testcase)

function markdowns_are_uptodate(testcase)
% Make sure that all Live Scripts have been converted to markdown files.
n = FileTool2.batchGenerateMarkdowns( ...
n = FileTool3.batchGenerateMarkdowns( ...
LiveScriptFolderNames = pwd, ...
MarkdownFolderPath = "markdown");

if n > 0
n = FileTool2.batchGenerateMarkdowns( ...
n = FileTool3.batchGenerateMarkdowns( ...
LiveScriptFolderNames = pwd, ...
MarkdownFolderPath = "markdown", DisplayInfo = true);
end % if
Expand Down
10 changes: 5 additions & 5 deletions BEV/Model-Thermal/BEV_setup_Thermal.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ function BEV_setup_Thermal(NameValuePair)
end % if

set_param(model_name + "/Longitudinal Vehicle", ReferencedSubsystem = "Vehicle1D_Basic_refsub");
FileTool2.evalMFile("Vehicle1D_Basic_params")
FileTool3.evalMFile("Vehicle1D_Basic_params")

set_param(model_name + "/High Voltage Battery", ReferencedSubsystem = "BatteryHV_SystemThermal_refsub");
FileTool2.evalMFile("BatteryHV_SystemThermal_params")
FileTool3.evalMFile("BatteryHV_SystemThermal_params")

set_param(model_name + "/Motor Drive Unit", ReferencedSubsystem = "MotorDriveUnit_BasicThermal_refsub");
FileTool2.evalMFile("MotorDriveUnit_BasicThermal_params")
FileTool3.evalMFile("MotorDriveUnit_BasicThermal_params")

set_param(model_name + "/Reduction Gear", ReferencedSubsystem = "Reducer_Basic_refsub");
FileTool2.evalMFile("Reducer_Basic_params")
FileTool3.evalMFile("Reducer_Basic_params")

set_param(model_name + "/Controller and Environment/BEV Controller", ReferencedSubsystem = "BEVController_Basic_refsub");
FileTool2.evalMFile("BEVController_Basic_params")
FileTool3.evalMFile("BEVController_Basic_params")

end % function
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function markdown_files_exist(testcase)

% Select Live Scripts.
% https://www.mathworks.com/help/matlab/ref/matlab.buildtool.io.filecollection.select.html
live_script_file_collection = select(mfile_collection, @(p) FileTool2.isPlainTextLiveScript(p));
live_script_file_collection = select(mfile_collection, @(p) FileTool3.isPlainTextLiveScript(p));

[folder_path, base_file_name, ~] = fileparts(live_script_file_collection.paths');
markdown_files = fullfile(folder_path, "markdown", base_file_name + ".md");
Expand All @@ -60,12 +60,12 @@ function markdown_files_exist(testcase)

function markdowns_are_uptodate(testcase)
% Make sure that all Live Scripts have been converted to markdown files.
n = FileTool2.batchGenerateMarkdowns( ...
n = FileTool3.batchGenerateMarkdowns( ...
LiveScriptFolderNames = pwd, ...
MarkdownFolderPath = "markdown");

if n > 0
n = FileTool2.batchGenerateMarkdowns( ...
n = FileTool3.batchGenerateMarkdowns( ...
LiveScriptFolderNames = pwd, ...
MarkdownFolderPath = "markdown", DisplayInfo = true);
end % if
Expand Down
16 changes: 8 additions & 8 deletions BEV/Utility/BEV_plotResults.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
hold(ax, "on")
grid(ax, "on")
plot(ax, simData, "Time", "Reference Vehicle Speed kph", LineWidth=2)
SignalTool2.setMinimumYRange(ax, simData.("Reference Vehicle Speed kph"), dy_threshold=2);
SignalTool3.setMinimumYRange(ax, simData.("Reference Vehicle Speed kph"), dy_threshold=2);
ylabel(ax, "") % Hide variable name defined in the timetable.
xlim(ax, "tight")
xlabel(ax, "")
Expand All @@ -75,7 +75,7 @@
plot(ax, simData, "Time", "G-Force", LineWidth=2)
hold(ax, "on")
grid(ax, "on")
SignalTool2.setMinimumYRange(ax, simData.("G-Force"), dy_threshold=0.02);
SignalTool3.setMinimumYRange(ax, simData.("G-Force"), dy_threshold=0.02);
ylabel(ax, "") % Hide variable name defined in the timetable.
xlim(ax, "tight")
xlabel(ax, "")
Expand All @@ -87,7 +87,7 @@
plot(ax, simData, "Time", "Motor Torque Command", LineWidth=2)
hold(ax, "on")
grid(ax, "on")
SignalTool2.setMinimumYRange(ax, simData.("Motor Torque Command"), dy_threshold=2);
SignalTool3.setMinimumYRange(ax, simData.("Motor Torque Command"), dy_threshold=2);
ylabel(ax, "") % Hide variable name defined in the timetable.
xlim(ax, "tight")
xlabel(ax, "")
Expand All @@ -100,7 +100,7 @@
plot(ax, simData, "Time", "Motor Temperature", LineWidth=2)
hold(ax, "on")
grid(ax, "on")
SignalTool2.setMinimumYRange(ax, simData.("Motor Temperature"), dy_threshold=2);
SignalTool3.setMinimumYRange(ax, simData.("Motor Temperature"), dy_threshold=2);
ylabel(ax, "") % Hide variable name defined in the timetable.
xlim(ax, "tight")
xlabel(ax, "")
Expand All @@ -115,7 +115,7 @@
plot(ax, simData, "Time", "HV Battery SOC", LineWidth=2)
hold(ax, "on")
grid(ax, "on")
SignalTool2.setMinimumYRange(ax, simData.("HV Battery SOC"), dy_threshold=0.2);
SignalTool3.setMinimumYRange(ax, simData.("HV Battery SOC"), dy_threshold=0.2);
ylabel(ax, "") % Hide variable name defined in the timetable.
xlim(ax, "tight")
xlabel(ax, "")
Expand All @@ -127,7 +127,7 @@
plot(ax, simData, "Time", "HV Battery Current", LineWidth=2)
hold(ax, "on")
grid(ax, "on")
SignalTool2.setMinimumYRange(ax, simData.("HV Battery Current"), dy_threshold=2);
SignalTool3.setMinimumYRange(ax, simData.("HV Battery Current"), dy_threshold=2);
ylabel(ax, "") % Hide variable name defined in the timetable.
xlim(ax, "tight")
xlabel(ax, "")
Expand All @@ -139,7 +139,7 @@
plot(ax, simData, "Time", "HV Battery Power", LineWidth=2)
hold(ax, "on")
grid(ax, "on")
SignalTool2.setMinimumYRange(ax, simData.("HV Battery Power"), dy_threshold=2);
SignalTool3.setMinimumYRange(ax, simData.("HV Battery Power"), dy_threshold=2);
ylabel(ax, "") % Hide variable name defined in the timetable.
xlim(ax, "tight")
xlabel(ax, "")
Expand All @@ -152,7 +152,7 @@
plot(ax, simData, "Time", "HV Battery Temperature", LineWidth=2)
hold(ax, "on")
grid(ax, "on")
SignalTool2.setMinimumYRange(ax, simData.("HV Battery Temperature"), dy_threshold=2);
SignalTool3.setMinimumYRange(ax, simData.("HV Battery Temperature"), dy_threshold=2);
ylabel(ax, "") % Hide variable name defined in the timetable.
xlim(ax, "tight")
xlabel(ax, "")
Expand Down
Binary file modified BEV/screenshot-BEV_system_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified BEV/simulation-results/BEV_SimulationResultPlot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading