Skip to content

Commit 5d9cfba

Browse files
committed
Minor release of foxBMS 2 (v1.7.0)
The installation process and the overall tooling has been simplified. foxBMS 2 now ships with a new 'venv' environment named '2024-08-pale-fox'. See INSTALLATION.md for information on updating the toolchain. **The CAN message IDs and some internal definitions have been changed.** * The defintion and layout of the CAN messages has been improved and required some changes. This is a incompatible change, i.e., control software needs to be adapted in order to correctly communicate with the BMS. See the changelog and documentation for details. * Fixed several bugs in NXP MC33775A driver: - which was caused by a wrong stop condition when iterating over cell voltages in function 'N775_InitializeDatabase'. - which caused an out-of-bounce access when reading out the unique device ID in function 'N775_Enumerate'. - which caused the daisy-chain to be not initialized correctly in some cases. No measurement data could be read from the daisy-chain in these cases. * Unit tests of the ADI ADES1830 AFE driver have been improved. * Toolchain updates (see INSTALLATION.md on how to update): - The Python dependencies have been updated. - Ceedling has been updated to 1.0.0-ba45d2c. - The Ruby Gems required for ceedling have been updated. - The VS Code workspaces have been improved for a better developed experience. For a detailed list of changes, please refer to the documentation at https://iisb-foxbms.iisb.fraunhofer.de/foxbms/gen2/docs/html/v1.7.0/general/changelog.html.
1 parent 06d3878 commit 5d9cfba

File tree

2,097 files changed

+91461
-149098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,097 files changed

+91461
-149098
lines changed

.clang-format

Lines changed: 89 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,57 @@
1+
---
12
Language: Cpp
3+
# BasedOnStyle: LLVM
24
AccessModifierOffset: -2
35
AlignAfterOpenBracket: AlwaysBreak
4-
AlignArrayOfStructures: None # clang-bug
5-
AlignConsecutiveMacros: Consecutive
6-
AlignConsecutiveAssignments: true
7-
AlignConsecutiveBitFields: Consecutive
8-
AlignConsecutiveDeclarations: false
6+
AlignArrayOfStructures: None
7+
AlignConsecutiveMacros:
8+
Enabled: true
9+
AcrossEmptyLines: false
10+
AcrossComments: false
11+
AlignCompound: false
12+
AlignFunctionPointers: false
13+
PadOperators: false
14+
AlignConsecutiveAssignments:
15+
Enabled: true
16+
AcrossEmptyLines: false
17+
AcrossComments: false
18+
AlignCompound: false
19+
AlignFunctionPointers: false
20+
PadOperators: true
21+
AlignConsecutiveBitFields:
22+
Enabled: true
23+
AcrossEmptyLines: false
24+
AcrossComments: false
25+
AlignCompound: false
26+
AlignFunctionPointers: false
27+
PadOperators: false
28+
AlignConsecutiveDeclarations:
29+
Enabled: false
30+
AcrossEmptyLines: false
31+
AcrossComments: false
32+
AlignCompound: false
33+
AlignFunctionPointers: false
34+
PadOperators: false
35+
AlignConsecutiveShortCaseStatements:
36+
Enabled: false
37+
AcrossEmptyLines: false
38+
AcrossComments: false
39+
AlignCaseColons: false
940
AlignEscapedNewlines: Left
1041
AlignOperands: Align
11-
AlignTrailingComments: true
42+
AlignTrailingComments:
43+
Kind: Always
44+
OverEmptyLines: 0
1245
AllowAllArgumentsOnNextLine: true
13-
AllowAllConstructorInitializersOnNextLine: true
1446
AllowAllParametersOfDeclarationOnNextLine: false
47+
AllowBreakBeforeNoexceptSpecifier: Never
1548
AllowShortBlocksOnASingleLine: false
1649
AllowShortCaseLabelsOnASingleLine: false
50+
AllowShortCompoundRequirementOnASingleLine: false
51+
AllowShortEnumsOnASingleLine: false
1752
AllowShortFunctionsOnASingleLine: InlineOnly
1853
AllowShortLambdasOnASingleLine: All
19-
AllowShortIfStatementsOnASingleLine: false
54+
AllowShortIfStatementsOnASingleLine: Never
2055
AllowShortLoopsOnASingleLine: false
2156
AlwaysBreakAfterDefinitionReturnType: None
2257
AlwaysBreakAfterReturnType: None
@@ -44,24 +79,24 @@ BraceWrapping:
4479
SplitEmptyFunction: true
4580
SplitEmptyRecord: true
4681
SplitEmptyNamespace: true
82+
BreakAdjacentStringLiterals: true
83+
BreakAfterAttributes: Leave
84+
BreakArrays: true
4785
BreakBeforeBinaryOperators: None
4886
BreakBeforeConceptDeclarations: true
4987
BreakBeforeBraces: Attach
50-
BreakBeforeInheritanceComma: false
88+
BreakBeforeInlineASMColon: OnlyMultiline
5189
BreakInheritanceList: BeforeColon
5290
BreakBeforeTernaryOperators: true
53-
BreakConstructorInitializersBeforeComma: false
5491
BreakConstructorInitializers: BeforeColon
5592
BreakAfterJavaFieldAnnotations: false
5693
BreakStringLiterals: true
5794
ColumnLimit: 120
5895
CommentPragmas: "^ IWYU pragma:"
5996
CompactNamespaces: false
60-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
6197
ConstructorInitializerIndentWidth: 4
6298
ContinuationIndentWidth: 4
6399
Cpp11BracedListStyle: true
64-
DeriveLineEnding: true
65100
DerivePointerAlignment: false
66101
DisableFormat: false
67102
EmptyLineAfterAccessModifier: Never
@@ -107,43 +142,66 @@ IncludeIsMainSourceRegex: ""
107142
IndentAccessModifiers: false
108143
IndentCaseLabels: true
109144
IndentCaseBlocks: false
145+
110146
IndentGotoLabels: true
111147
IndentPPDirectives: None
112148
IndentExternBlock: AfterExternBlock
113-
IndentRequires: false
149+
IndentRequiresClause: true
114150
IndentWidth: 4
115-
IndentWrappedFunctionNames: true
151+
IndentWrappedFunctionNames: false
152+
InsertBraces: false
153+
InsertNewlineAtEOF: false
116154
InsertTrailingCommas: None
155+
IntegerLiteralSeparator:
156+
Binary: 0
157+
BinaryMinDigits: 0
158+
Decimal: 0
159+
DecimalMinDigits: 0
160+
Hex: 0
161+
HexMinDigits: 0
117162
JavaScriptQuotes: Leave
118163
JavaScriptWrapImports: true
119164
KeepEmptyLinesAtTheStartOfBlocks: false
165+
KeepEmptyLinesAtEOF: true
120166
LambdaBodyIndentation: Signature
167+
LineEnding: DeriveLF
121168
MacroBlockBegin: ""
122169
MacroBlockEnd: ""
123170
MaxEmptyLinesToKeep: 1
124171
NamespaceIndentation: None
125172
ObjCBinPackProtocolList: Auto
126-
ObjCBlockIndentWidth: 2
173+
ObjCBlockIndentWidth: 4
127174
ObjCBreakBeforeNestedBlockParam: true
128175
ObjCSpaceAfterProperty: false
129176
ObjCSpaceBeforeProtocolList: true
177+
PackConstructorInitializers: BinPack
130178
PenaltyBreakAssignment: 20
131179
PenaltyBreakBeforeFirstCallParameter: 19
132180
PenaltyBreakComment: 300
133181
PenaltyBreakFirstLessLess: 120
182+
PenaltyBreakOpenParenthesis: 0
183+
PenaltyBreakScopeResolution: 500
134184
PenaltyBreakString: 1000
135185
PenaltyBreakTemplateDeclaration: 10
136186
PenaltyExcessCharacter: 1000000
137187
PenaltyReturnTypeOnItsOwnLine: 100000
138188
PenaltyIndentedWhitespace: 0
139189
PointerAlignment: Right
140190
PPIndentWidth: -1
191+
QualifierAlignment: Leave
141192
ReferenceAlignment: Pointer
142193
ReflowComments: false
194+
RemoveBracesLLVM: false
195+
RemoveParentheses: Leave
196+
RemoveSemicolon: false
197+
RequiresClausePosition: OwnLine
198+
RequiresExpressionIndentation: OuterScope
199+
SeparateDefinitionBlocks: Leave
143200
ShortNamespaceLines: 1
201+
SkipMacroDefinitionBody: false
144202
SortIncludes: CaseSensitive
145203
SortJavaStaticImport: Before
146-
SortUsingDeclarations: true
204+
SortUsingDeclarations: LexicographicNumeric
147205
SpaceAfterCStyleCast: false
148206
SpaceAfterLogicalNot: false
149207
SpaceAfterTemplateKeyword: true
@@ -152,27 +210,37 @@ SpaceBeforeCaseColon: false
152210
SpaceBeforeCpp11BracedList: false
153211
SpaceBeforeCtorInitializerColon: true
154212
SpaceBeforeInheritanceColon: true
213+
SpaceBeforeJsonColon: false
155214
SpaceBeforeParens: ControlStatements
156215
SpaceAroundPointerQualifiers: Default
216+
SpaceBeforeParensOptions:
217+
AfterControlStatements: true
218+
AfterForeachMacros: true
219+
AfterFunctionDefinitionName: false
220+
AfterFunctionDeclarationName: false
221+
AfterIfMacros: true
222+
AfterOverloadedOperator: false
223+
AfterPlacementOperator: true
224+
AfterRequiresInClause: false
225+
AfterRequiresInExpression: false
226+
BeforeNonEmptyParentheses: false
157227
SpaceBeforeRangeBasedForLoopColon: true
158228
SpaceInEmptyBlock: false
159-
SpaceInEmptyParentheses: false
160229
SpacesBeforeTrailingComments: 2
161230
SpacesInAngles: Never
162-
SpacesInConditionalStatement: false
163231
SpacesInContainerLiterals: true
164-
SpacesInCStyleCastParentheses: false
165232
SpacesInLineCommentPrefix:
166233
Minimum: 1
167234
Maximum: -1
168-
SpacesInParentheses: false
235+
SpacesInParens: Never
169236
SpacesInSquareBrackets: false
170237
SpaceBeforeSquareBrackets: false
171238
BitFieldColonSpacing: Both
172239
Standard: Latest
173240
StatementAttributeLikeMacros: []
174241
StatementMacros: []
175242
TabWidth: 4
176-
UseCRLF: true
177243
UseTab: Never
244+
VerilogBreakBetweenInstancePorts: true
178245
WhitespaceSensitiveMacros: []
246+
---

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ tests/axivion/qualification-test/qualification-kit/**/*.cpp -diff -merge -text
2727
tests/axivion/qualification-test/qualification-kit/**/*.h -diff -merge -text
2828
tests/axivion/qualification-test/qualification-kit/**/*.json -diff -merge -text
2929
tests/axivion/qualification-test/qualification-kit/**/*.py -diff -merge -text
30+
31+
*.sln text eol=crlf
32+
33+
*.png binary
34+
*.jpg binary
35+
36+
*.sh text eol=lf

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ system or similar that would allow us to integrate input from GitHub Pull
2727
Requests, therefore GitHub Pull Requests are currently not accepted.
2828

2929
We would be very pleased if you intend to contribute to this project. Please
30-
contact us first at [email protected] in order to discuss your contribution and
30+
contact us first at <[email protected]> in order to discuss your contribution and
3131
how it can be applied to the project.

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/.vscode/
2+
/src/.vscode/
3+
/tests/unit/.vscode/
24
/build/
35
/build-tools-tests/
46
/*build/
@@ -7,17 +9,26 @@
79
/conf/hcg/source/*
810
/conf/hcg/*_bak.dil
911
/conf/hcg/*_bak.hcg
12+
/tmp/*
1013

14+
*/tmp/*
1115
*c4che*
1216
/foxbms*/
1317
tools/*waf3-*/
1418
tools/waf-sig*
19+
tools/utils/waf-sig*
1520
.lock-waf*
21+
.wafpickle-*
1622
*.bz2
1723
*.gz
1824
*.zip
1925
*.7z
2026
*.stats
27+
*.html
28+
29+
#
30+
libbuild/
31+
lib-build/
2132

2233
# spelling
2334
dictionary.dic
@@ -53,10 +64,14 @@ __pycache__
5364

5465
*.~*
5566
*.~$*
67+
~$*
5668

5769
**/foxbms-2_axivion_report*.json
70+
**/foxbms_spa_report*.json
5871
spa-artifacts/
5972

73+
*.o
74+
*.obj
6075
*.exe
6176

6277
/races.txt
@@ -65,3 +80,14 @@ spa-artifacts/
6580
*.asc
6681

6782
*.tmp
83+
84+
# coverage files
85+
.coverage
86+
htmlcov/
87+
88+
*.mk
89+
*.rsp
90+
*.dmr
91+
*.tmw
92+
buildInfo.*
93+
codeInfo.*

0 commit comments

Comments
 (0)