Skip to content

Commit 7ae3950

Browse files
committed
Update PowerSplitHEV_SpeedTracking
1 parent bacad19 commit 7ae3950

File tree

6 files changed

+24
-13
lines changed

6 files changed

+24
-13
lines changed

HEV/PowerSplitHEV_DirectInput/test/PowerSplitHEV_DirectInput_UnitTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function runLiveScript_main_script(~)
237237
PowerSplitHEV_DirectInput_main_script
238238

239239
% Second run uses existing png files.
240-
% This is for better code coverage.
240+
% This is to improve code coverage.
241241
PowerSplitHEV_DirectInput_main_script
242242

243243
close all
111 Bytes
Loading
24 Bytes
Loading
-264 Bytes
Loading

HEV/PowerSplitHEV_SpeedTracking/test/PowerSplitHEV_SpeedTracking_UnitTest.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,20 @@ function runLiveScript_main_script(~)
205205
close all
206206
bdclose all
207207

208+
% Delete the png files of simulation result plots.
209+
imgFolder = fullfile( ...
210+
currentProject().RootFolder, "HEV", "PowerSplitHEV_SpeedTracking", "images");
211+
delete(fullfile(imgFolder, "*.png"))
212+
208213
% If script loads some variables to the base workspace
209214
% (for example by calling a function which explicitly does so with assignin),
210215
% the script must be explicitly evaluated in the base workspace.
216+
217+
% First run creates png files.
218+
evalin("base", "PowerSplitHEV_SpeedTracking_main_script")
219+
220+
% Second run uses existing png files.
221+
% This is to improve code coverage.
211222
evalin("base", "PowerSplitHEV_SpeedTracking_main_script")
212223

213224
close all

HEV/PowerSplitHEV_system_model.mdl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ __MWOPC_PART_BEGIN__ /metadata/coreProperties.xml
4747
<dc:creator>MathWorks</dc:creator>
4848
<dc:description></dc:description>
4949
<cp:lastModifiedBy>isaacito</cp:lastModifiedBy>
50-
<dcterms:modified xsi:type="dcterms:W3CDTF">2022-04-11T16:18:18Z</dcterms:modified>
50+
<dcterms:modified xsi:type="dcterms:W3CDTF">2022-04-11T16:24:33Z</dcterms:modified>
5151
<cp:revision>5.46</cp:revision>
5252
<cp:version>R2022a</cp:version>
5353
</cp:coreProperties>
@@ -2533,8 +2533,8 @@ Configuration</P>
25332533
__MWOPC_PART_BEGIN__ /simulink/modelDictionary.xml
25342534
<?xml version="1.0" encoding="UTF-8"?>
25352535
<MF0 version="1.1" defaultPackage="slid" packageUris="http://schema.mathworks.com/mf0/slid/R2020b_20191110">
2536-
<System type="System" uuid="d0476836-7c11-45c5-b8b6-38198485c4be">
2537-
<Interface type="Interface" uuid="83ca264b-2011-4973-a5de-72729391e81b"/>
2536+
<System type="System" uuid="79aac70d-faab-4d7b-a97e-9853faf5a510">
2537+
<Interface type="Interface" uuid="5d0681b2-38a2-498a-8683-05bfa4930d49"/>
25382538
</System>
25392539
</MF0>
25402540
__MWOPC_PART_BEGIN__ /simulink/plugins/LogicAnalyzerPlugin.xml
@@ -3352,27 +3352,27 @@ NOMO4P8Du44Dox28jwkAAAAASUVORK5CYII==
33523352
__MWOPC_PART_BEGIN__ /simulink/ScheduleCore.xml
33533353
<?xml version="1.0" encoding="UTF-8"?>
33543354
<sltp_graph version="1.1" packageUris="http://schema.mathworks.com/mf0/sltp_mm/R2021b_202106150630">
3355-
<sltp.mm.core.Context type="sltp.mm.core.Context" uuid="65327bf9-9ea7-4c19-b28f-7c736cf3d384">
3355+
<sltp.mm.core.Context type="sltp.mm.core.Context" uuid="43f163d9-78ee-4752-8c12-586e6bef0010">
33563356
<priorityDirection>HighNumberLast</priorityDirection>
33573357
<editorState type="sltp.mm.core.EditorState" uuid="e7dec165-db76-4602-bfd3-32fb4e0d7cc6">
33583358
<isSynchronized>true</isSynchronized>
33593359
<panelState type="sltp.mm.core.EditorPanelState" uuid="380e0f69-9767-416e-866e-b05d2cfeb511"/>
33603360
</editorState>
3361-
<rootTask type="sltp.mm.core.Task" uuid="7127456f-e721-4a08-a639-2c9659c7b4e4">
3362-
<context type="sltp.mm.core.Context" uuid="65327bf9-9ea7-4c19-b28f-7c736cf3d384"/>
3361+
<rootTask type="sltp.mm.core.Task" uuid="ca5bb347-3476-45f2-a039-71c6c9c6735b">
3362+
<context type="sltp.mm.core.Context" uuid="43f163d9-78ee-4752-8c12-586e6bef0010"/>
33633363
<explicit>false</explicit>
33643364
<name>Default</name>
33653365
<priority>-2147483648</priority>
3366-
<subgraph type="sltp.mm.core.Graph" uuid="cb8e180f-bc9b-4e1d-ae80-7e9d8144030f">
3367-
<tasks type="sltp.mm.core.Task" uuid="0d44695d-2825-4520-9513-8c061726e1a6">
3366+
<subgraph type="sltp.mm.core.Graph" uuid="20acd615-4100-4673-a291-f03cff568daf">
3367+
<tasks type="sltp.mm.core.Task" uuid="e7aed407-45ca-4f36-9847-eca40449a6ff">
33683368
<baseTask>true</baseTask>
3369-
<context type="sltp.mm.core.Context" uuid="65327bf9-9ea7-4c19-b28f-7c736cf3d384"/>
3369+
<context type="sltp.mm.core.Context" uuid="43f163d9-78ee-4752-8c12-586e6bef0010"/>
33703370
<explicit>false</explicit>
33713371
<id>1</id>
33723372
<isTimed>true</isTimed>
33733373
<name>Cont</name>
33743374
<priority>40</priority>
3375-
<rates type="sltp.mm.core.Rate" uuid="7c031871-b747-494c-8a62-dd56efb78a90">
3375+
<rates type="sltp.mm.core.Rate" uuid="af920d8c-a8de-4917-95f1-65e3c6fb8b3a">
33763376
<annotation>Cont</annotation>
33773377
<color>255</color>
33783378
<hasBlocks>true</hasBlocks>
@@ -3381,7 +3381,7 @@ __MWOPC_PART_BEGIN__ /simulink/ScheduleCore.xml
33813381
</rateSpec>
33823382
<sti>0</sti>
33833383
</rates>
3384-
<rates type="sltp.mm.core.Rate" uuid="f379c7e8-0042-4bb1-aa6a-576e6eff130c">
3384+
<rates type="sltp.mm.core.Rate" uuid="c5022125-9a4c-4d66-862d-4ba3f0a94336">
33853385
<annotation>FiM</annotation>
33863386
<color>-2139062017</color>
33873387
<hasBlocks>true</hasBlocks>
@@ -6148,7 +6148,7 @@ __MWOPC_PART_BEGIN__ /simulink/windowsInfo.xml
61486148
<Array PropName="PersistedApps" Type="Cell" Dimension="0*1"/>
61496149
<P Name="WindowUuid" Class="char">758d041b-2a89-446a-a178-7700d6a6ccba</P>
61506150
</Object>
6151-
<P Name="BDUuid" Class="char">82be1246-9c2b-449b-8505-76ffc7d8a624</P>
6151+
<P Name="BDUuid" Class="char">5be9388c-4571-4b26-a750-99c26cce06e8</P>
61526152
</Object>
61536153
</WindowsInfo>
61546154

0 commit comments

Comments
 (0)