Skip to content

Commit fb95e88

Browse files
committed
GitHub Action yml update
1 parent 0a19f44 commit fb95e88

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ jobs:
7878
Simscape_Electrical
7979
Powertrain_Blockset
8080
Simscape_Battery
81+
Signal_Processing_Toolbox
82+
Predictive_Maintenance_Toolbox
8183
- name: Run tests
8284
uses: matlab-actions/run-command@v3
8385
with:

Components/BMS/Model/BMS.slx

8.86 KB
Binary file not shown.

Model/BEVsystemModel.slx

12.3 KB
Binary file not shown.

Workflow/Vehicle/RangeEstimation/BEVrangeEstimationNEDC.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@
2424
'MatchFilter', @Simulink.match.allVariants, ...
2525
'Name', 'Drive Cycle Source'); % Get the block handle
2626

27-
% Select drive cycle if available
27+
% Select drive cycle if available, fall back to FTP75
2828
try
2929
set(getSimulinkBlockHandle(speedBlock),'cycleVar',driveCycle);
3030
catch
31-
error('To run this simulation, install the Powertrain Blockset Drive Profile Data');
31+
disp('Plese Install desired test cycle using Drive Cycle Source block in the slx model');
32+
driveCycle = 'FTP75';
33+
SimulationTime = "2474";
34+
disp('Running available Default cycle FTP75');
35+
set(getSimulinkBlockHandle(speedBlock),'cycleVar',driveCycle);
3236
end
3337

38+
3439
% Battery setting
3540
battery.T_vec=[278 293 313]; % Temperature vector T [K]
3641
battery.AH=34; % Cell capacity [Ahr]

Workflow/Vehicle/RangeEstimation/BEVrangeEstimationWLTC.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@
2424
'MatchFilter', @Simulink.match.allVariants, ...
2525
'Name', 'Drive Cycle Source'); % Get the block handle
2626

27-
% Select drive cycle if available
27+
% Select drive cycle if available, fall back to FTP75
2828
try
2929
set(getSimulinkBlockHandle(speedBlock),'cycleVar',driveCycle);
3030
catch
31-
error('To run this simulation, install the Powertrain Blockset Drive Profile Data');
31+
disp('Plese Install desired test cycle using Drive Cycle Source block in the slx model');
32+
driveCycle = 'FTP75';
33+
SimulationTime = "2474";
34+
disp('Running available Default cycle FTP75');
35+
set(getSimulinkBlockHandle(speedBlock),'cycleVar',driveCycle);
3236
end
3337

3438
% Battery setting

0 commit comments

Comments
 (0)