Skip to content

Commit 530452c

Browse files
authored
R2024b: Update the BEV controller (#50)
* Update the BEV motor speed controller.
1 parent a6c55e5 commit 530452c

1,826 files changed

Lines changed: 9982 additions & 31019 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
-5.16 MB
Binary file not shown.
-5.27 MB
Binary file not shown.
-7.03 MB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,120 @@
1-
# GitHub Actions Workflow with MATLAB Actions
2-
#
3-
# For a general overview of GitHub Actions, see
4-
# https://docs.github.com/en/actions
5-
#
6-
# For using MathWorks products in GitHub Actions, see
7-
# https://github.com/matlab-actions/overview
8-
#
9-
# For details about the syntax of this file, see
10-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
11-
12-
# Copyright 2021-2025 The MathWorks, Inc.
13-
14-
name: CI using MATLAB on Linux
15-
16-
on:
17-
push:
18-
branches: [ R2024b ]
19-
paths-ignore:
20-
- 'docs/**'
21-
- '**.md'
22-
- '**.png'
23-
- '**.svg'
24-
- '**.txt'
25-
- '**.xml'
26-
27-
pull_request:
28-
branches: [ R2024b ]
29-
paths-ignore:
30-
- 'docs/**'
31-
- '**.md'
32-
- '**.png'
33-
- '**.svg'
34-
- '**.txt'
35-
- '**.xml'
36-
37-
# schedule:
38-
# - cron: '55/61 20/25 1/6 * *' # schedule a weekly-ish build
39-
40-
workflow_dispatch:
41-
42-
jobs:
43-
44-
job-buildtool:
45-
46-
runs-on: ubuntu-latest
47-
48-
# Matrix strategy is used to run the job in various MATLAB versions.
49-
# For information about matrix strategy, see the documentation.
50-
# - Running variations of jobs in a workflow
51-
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow
52-
strategy:
53-
matrix:
54-
matlab_version: [R2024b]
55-
#matlab_version: [R2024b, R2025a]
56-
57-
name: Test in ${{ matrix.matlab_version }} on Linux
58-
59-
permissions:
60-
# required for sarif upload
61-
security-events: write
62-
checks: write # required for junit test result publishing
63-
64-
steps:
65-
66-
- name: Check out repository
67-
uses: actions/checkout@v4
68-
69-
- name: Setup MATLAB ${{ matrix.matlab_version }}
70-
uses: matlab-actions/setup-matlab@v2
71-
with:
72-
release: ${{ matrix.matlab_version }}
73-
cache: true
74-
products: |
75-
Simulink
76-
Simscape
77-
Simscape_Electrical
78-
Simscape_Driveline
79-
Powertrain_Blockset
80-
81-
- name: Start display server for running headless Linux with graphics
82-
run: |
83-
sudo apt-get install xvfb
84-
Xvfb :99 &
85-
echo "DISPLAY=:99" >> $GITHUB_ENV
86-
87-
- name: Run tests via buildtool using buildfile.m
88-
uses: matlab-actions/run-command@v2
89-
with:
90-
command: |
91-
openProject(pwd);
92-
buildtool CodeIssues CheckProject Test
93-
94-
- name: Upload SARIF file
95-
uses: github/codeql-action/upload-sarif@v3
96-
if: always()
97-
with:
98-
sarif_file: cache/buildtool-results/code-issues.sarif
99-
category: matlab-analysis
100-
101-
- name: Publish Test Report
102-
uses: mikepenz/action-junit-report@v4
103-
if: always()
104-
with:
105-
report_paths: 'cache/buildtool-results/test-results.xml'
106-
107-
- name: Upload Test Report
108-
if: always()
109-
uses: actions/upload-artifact@v4
110-
with:
111-
name: Test Results
112-
path: cache/buildtool-results/test-results.pdf
113-
114-
- name: Upload All Artifacts
115-
if: always()
116-
uses: actions/upload-artifact@v4
117-
with:
118-
name: All Artifacts
119-
path: cache/buildtool-results
120-
121-
- name: Publish coverage
122-
uses: 5monkeys/cobertura-action@master
123-
continue-on-error: true
124-
with:
125-
path: cache/buildtool-results/code-coverage.xml
126-
minimum_coverage: 75
1+
# GitHub Actions Workflow with MATLAB Actions
2+
#
3+
# For a general overview of GitHub Actions, see
4+
# https://docs.github.com/en/actions
5+
#
6+
# For using MathWorks products in GitHub Actions, see
7+
# https://github.com/matlab-actions/overview
8+
#
9+
# For details about the syntax of this file, see
10+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
11+
12+
# Copyright 2021-2026 The MathWorks, Inc.
13+
14+
name: Test using MATLAB R2024b on Linux
15+
16+
on:
17+
push:
18+
branches: [ R2024b, R2024b-devel ]
19+
paths-ignore:
20+
- 'docs/**'
21+
- '**.md'
22+
- '**.png'
23+
- '**.svg'
24+
- '**.txt'
25+
- '**.xml'
26+
27+
pull_request:
28+
branches: [ R2024b, R2024b-devel ]
29+
paths-ignore:
30+
- 'docs/**'
31+
- '**.md'
32+
- '**.png'
33+
- '**.svg'
34+
- '**.txt'
35+
- '**.xml'
36+
37+
workflow_dispatch:
38+
39+
jobs:
40+
41+
job-buildtool:
42+
43+
runs-on: ubuntu-latest
44+
45+
strategy:
46+
matrix:
47+
config:
48+
- name: R2024b
49+
file: buildfile_24b.m
50+
51+
name: Test R2024b branch using MATLAB ${{ matrix.config.name }} on Linux
52+
53+
permissions:
54+
# required for sarif upload
55+
security-events: write
56+
checks: write # required for junit test result publishing
57+
58+
steps:
59+
60+
- name: Check out repository
61+
uses: actions/checkout@v6
62+
63+
- name: Setup MATLAB ${{ matrix.config.name }}
64+
uses: matlab-actions/setup-matlab@v2
65+
with:
66+
release: ${{ matrix.config.name }}
67+
cache: true
68+
products: |
69+
Simulink
70+
Simscape
71+
Simscape_Electrical
72+
Simscape_Driveline
73+
Powertrain_Blockset
74+
75+
- name: Start display server for running headless Linux with graphics
76+
run: |
77+
sudo apt-get install xvfb
78+
Xvfb :99 &
79+
echo "DISPLAY=:99" >> $GITHUB_ENV
80+
81+
- name: Run tests
82+
uses: matlab-actions/run-command@v2
83+
with:
84+
command: |
85+
openProject(pwd);
86+
buildtool -buildFile ${{ matrix.config.file }} -verbosity Verbose CodeIssues CheckProject Test
87+
88+
- name: Upload SARIF file
89+
uses: github/codeql-action/upload-sarif@v4
90+
if: always()
91+
with:
92+
sarif_file: test-result-24b/code-issues.sarif
93+
category: matlab-analysis
94+
95+
- name: Publish Test Report
96+
uses: mikepenz/action-junit-report@v4
97+
if: always()
98+
with:
99+
report_paths: 'test-result-24b/test-result.xml'
100+
101+
- name: Upload Test Report
102+
if: always()
103+
uses: actions/upload-artifact@v4
104+
with:
105+
name: Test Results
106+
path: test-result-24b/test-result.pdf
107+
108+
- name: Upload All Artifacts
109+
if: always()
110+
uses: actions/upload-artifact@v4
111+
with:
112+
name: All Artifacts
113+
path: test-result
114+
115+
- name: Publish coverage
116+
uses: 5monkeys/cobertura-action@master
117+
continue-on-error: true
118+
with:
119+
path: test-result-24b/code-coverage.xml
120+
minimum_coverage: 75

.github/workflows/ci-25b-linux.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# GitHub Actions Workflow with MATLAB Actions
2+
#
3+
# For a general overview of GitHub Actions, see
4+
# https://docs.github.com/en/actions
5+
#
6+
# For using MathWorks products in GitHub Actions, see
7+
# https://github.com/matlab-actions/overview
8+
#
9+
# For details about the syntax of this file, see
10+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
11+
12+
# Copyright 2021-2026 The MathWorks, Inc.
13+
14+
name: Test using MATLAB R2025b on Linux
15+
16+
on:
17+
push:
18+
branches: [ R2024b, R2024b-devel ]
19+
paths-ignore:
20+
- 'docs/**'
21+
- '**.md'
22+
- '**.png'
23+
- '**.svg'
24+
- '**.txt'
25+
- '**.xml'
26+
27+
pull_request:
28+
branches: [ R2024b, R2024b-devel ]
29+
paths-ignore:
30+
- 'docs/**'
31+
- '**.md'
32+
- '**.png'
33+
- '**.svg'
34+
- '**.txt'
35+
- '**.xml'
36+
37+
workflow_dispatch:
38+
39+
jobs:
40+
41+
job-buildtool:
42+
43+
runs-on: ubuntu-latest
44+
45+
strategy:
46+
matrix:
47+
config:
48+
- name: R2025b
49+
file: buildfile_24b.m
50+
51+
name: Test R2024b branch using MATLAB ${{ matrix.config.name }} on Linux
52+
53+
steps:
54+
55+
- name: Check out repository
56+
uses: actions/checkout@v6
57+
58+
- name: Setup MATLAB ${{ matrix.config.name }}
59+
uses: matlab-actions/setup-matlab@v2
60+
with:
61+
release: ${{ matrix.config.name }}
62+
cache: true
63+
products: |
64+
Simulink
65+
Simscape
66+
Simscape_Electrical
67+
Simscape_Driveline
68+
Powertrain_Blockset
69+
70+
- name: Start display server for running headless Linux with graphics
71+
run: |
72+
sudo apt-get install xvfb
73+
Xvfb :99 &
74+
echo "DISPLAY=:99" >> $GITHUB_ENV
75+
76+
- name: Run tests via buildtool using buildfile.m
77+
uses: matlab-actions/run-command@v2
78+
with:
79+
command: |
80+
openProject(pwd);
81+
buildtool -buildFile ${{ matrix.config.file }} -verbosity Verbose CodeIssues CheckProject Test

.github/workflows/ci-windows.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
# For details about the syntax of this file, see
1010
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
1111

12-
# Copyright 2025 The MathWorks, Inc.
12+
# Copyright 2025-2026 The MathWorks, Inc.
1313

14-
name: CI using MATLAB on Windows
14+
name: Test on Windows
1515

1616
on:
1717
push:
18-
branches: [ R2024b ]
18+
branches: [ R2024b, R2024b-devel ]
1919
paths-ignore:
2020
- 'docs/**'
2121
- '**.md'
@@ -25,7 +25,7 @@ on:
2525
- '**.xml'
2626

2727
pull_request:
28-
branches: [ R2024b ]
28+
branches: [ R2024b, R2024b-devel ]
2929
paths-ignore:
3030
- 'docs/**'
3131
- '**.md'
@@ -44,20 +44,19 @@ jobs:
4444

4545
strategy:
4646
matrix:
47-
matlab_version: [R2024b]
48-
#matlab_version: [R2024b, R2025a]
47+
matlab_release: [R2024b, latest]
4948

50-
name: Test in ${{ matrix.matlab_version }} on Windows
49+
name: Test R2024b branch using MATLAB ${{ matrix.matlab_release }} on Windows
5150

5251
steps:
5352

5453
- name: Check out repository
55-
uses: actions/checkout@v4
54+
uses: actions/checkout@v6
5655

57-
- name: Setup MATLAB ${{ matrix.matlab_version }}
56+
- name: Setup MATLAB ${{ matrix.matlab_release }}
5857
uses: matlab-actions/setup-matlab@v2
5958
with:
60-
release: ${{ matrix.matlab_version }}
59+
release: ${{ matrix.matlab_release }}
6160
cache: true
6261
products: |
6362
Simulink
@@ -66,9 +65,9 @@ jobs:
6665
Simscape_Driveline
6766
Powertrain_Blockset
6867
69-
- name: Run buildtool using buildfile.m
68+
- name: Run tests
7069
uses: matlab-actions/run-command@v2
7170
with:
7271
command: |
7372
openProject(pwd);
74-
buildtool CodeIssues CheckProject Test
73+
buildtool -buildFile buildfile_24b.m -verbosity Verbose CodeIssues CheckProject Test

0 commit comments

Comments
 (0)