Skip to content

Commit f94839c

Browse files
committed
Minor release of foxBMS 2 (v1.8.0)
* This version of foxBMS bundles with new hardware releases, most importantly a new BMS-Master. The BMS-Master version is bumped to ``v1.2.2``. For details on the BMS-Master see the changelog and the documentation. * The BMS-Master now comes with a streamlined supply concept, which only requires a single SBC and therefby making the hard- and software simpler. Detail on the SBC configuration, which must be flashed on the SBC prior to PCB assembly, are also found in the documentation. Now the CAN1 Enable and Standby signals have been wired directly to the MCU, instead of using I2C based port expander. To achieve software compatibility with older BMS-Master releases see the documentation. Further, new releases for all |bms-slaves| have been added. * Updated the Python environment (``2025-01-pale-fox``). See the documentation on how to install the update locally. * This commit introduces changes that are required for the bootloader. **The actual bootloader is not included in this commit.** * Changed the behavior of the ``BMS`` state machine. After startup, the reception of ``STANDBY`` request (CAN message ``f_BmsStateRequest``) is now necessary to enter BMS ``STANDBY``. * Improved the consistency of the CAN driver implementation. * Invalid flags in the CAN messages ``f_CellVoltages`` and ``f_CellTemperatures`` were transmitted inverted. * Balancing information is now transmitted via CAN. * The CAN1 enable and standby pins where moved from port expander 2 to discrete GPIOs. * A dedicated CAN message for the transmission of fatal errors was added. Diagnosis entries with a severity of ``DIAG_FATAL_ERROR`` lead to an opening of the contactors. This CAN message will be transmitted with a period of 100ms as soon as an active fatal error has been detected, until the error is cleared again. * The build commands have been streamlined. Consult the documentation for details. * Upgraded FreeRTOS to V10.4.6. * Improved unit test coverage. * Improved various sections of the documentation. * Fixed various bugs in ADES1830 AFE driver: * Invalid flags for cell temperatures were not set correctly. * Invalid flags for GPIO measurement values were not set correctly. * Diagnosis entry for ``DIAG_ID_AFE_COMMUNICATION_INTEGRITY`` was not called. * String and module voltage was previously not measured/calculated. For a detailed list of changes, please refer to the documentation at https://iisb-foxbms.iisb.fraunhofer.de/foxbms/gen2/docs/html/v1.8.0/general/changelog.html.
1 parent 5d9cfba commit f94839c

File tree

1,336 files changed

+55073
-16081
lines changed

Some content is hidden

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

1,336 files changed

+55073
-16081
lines changed

.clang-format

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ Language: Cpp
44
AccessModifierOffset: -2
55
AlignAfterOpenBracket: AlwaysBreak
66
AlignArrayOfStructures: None
7-
AlignConsecutiveMacros:
8-
Enabled: true
9-
AcrossEmptyLines: false
10-
AcrossComments: false
11-
AlignCompound: false
12-
AlignFunctionPointers: false
13-
PadOperators: false
147
AlignConsecutiveAssignments:
158
Enabled: true
169
AcrossEmptyLines: false
@@ -32,6 +25,13 @@ AlignConsecutiveDeclarations:
3225
AlignCompound: false
3326
AlignFunctionPointers: false
3427
PadOperators: false
28+
AlignConsecutiveMacros:
29+
Enabled: true
30+
AcrossEmptyLines: false
31+
AcrossComments: false
32+
AlignCompound: false
33+
AlignFunctionPointers: false
34+
PadOperators: false
3535
AlignConsecutiveShortCaseStatements:
3636
Enabled: false
3737
AcrossEmptyLines: false
@@ -45,13 +45,13 @@ AlignTrailingComments:
4545
AllowAllArgumentsOnNextLine: true
4646
AllowAllParametersOfDeclarationOnNextLine: false
4747
AllowBreakBeforeNoexceptSpecifier: Never
48-
AllowShortBlocksOnASingleLine: false
48+
AllowShortBlocksOnASingleLine: Never
4949
AllowShortCaseLabelsOnASingleLine: false
5050
AllowShortCompoundRequirementOnASingleLine: false
5151
AllowShortEnumsOnASingleLine: false
5252
AllowShortFunctionsOnASingleLine: InlineOnly
53-
AllowShortLambdasOnASingleLine: All
5453
AllowShortIfStatementsOnASingleLine: Never
54+
AllowShortLambdasOnASingleLine: All
5555
AllowShortLoopsOnASingleLine: false
5656
AlwaysBreakAfterDefinitionReturnType: None
5757
AlwaysBreakAfterReturnType: None
@@ -60,17 +60,18 @@ AlwaysBreakTemplateDeclarations: MultiLine
6060
AttributeMacros: []
6161
BinPackArguments: false
6262
BinPackParameters: false
63+
BitFieldColonSpacing: Both
6364
BraceWrapping:
6465
AfterCaseLabel: false
6566
AfterClass: false
6667
AfterControlStatement: Never
6768
AfterEnum: false
69+
AfterExternBlock: false
6870
AfterFunction: false
6971
AfterNamespace: false
7072
AfterObjCDeclaration: false
7173
AfterStruct: false
7274
AfterUnion: false
73-
AfterExternBlock: false
7475
BeforeCatch: false
7576
BeforeElse: false
7677
BeforeLambdaBody: false
@@ -81,15 +82,15 @@ BraceWrapping:
8182
SplitEmptyNamespace: true
8283
BreakAdjacentStringLiterals: true
8384
BreakAfterAttributes: Leave
85+
BreakAfterJavaFieldAnnotations: false
8486
BreakArrays: true
8587
BreakBeforeBinaryOperators: None
86-
BreakBeforeConceptDeclarations: true
88+
BreakBeforeConceptDeclarations: Always
8789
BreakBeforeBraces: Attach
8890
BreakBeforeInlineASMColon: OnlyMultiline
89-
BreakInheritanceList: BeforeColon
9091
BreakBeforeTernaryOperators: true
9192
BreakConstructorInitializers: BeforeColon
92-
BreakAfterJavaFieldAnnotations: false
93+
BreakInheritanceList: BeforeColon
9394
BreakStringLiterals: true
9495
ColumnLimit: 120
9596
CommentPragmas: "^ IWYU pragma:"
@@ -140,12 +141,11 @@ IncludeCategories:
140141
IncludeIsMainRegex: "(_cfg)?$"
141142
IncludeIsMainSourceRegex: ""
142143
IndentAccessModifiers: false
143-
IndentCaseLabels: true
144144
IndentCaseBlocks: false
145-
145+
IndentCaseLabels: true
146+
IndentExternBlock: AfterExternBlock
146147
IndentGotoLabels: true
147148
IndentPPDirectives: None
148-
IndentExternBlock: AfterExternBlock
149149
IndentRequiresClause: true
150150
IndentWidth: 4
151151
IndentWrappedFunctionNames: false
@@ -184,8 +184,8 @@ PenaltyBreakScopeResolution: 500
184184
PenaltyBreakString: 1000
185185
PenaltyBreakTemplateDeclaration: 10
186186
PenaltyExcessCharacter: 1000000
187-
PenaltyReturnTypeOnItsOwnLine: 100000
188187
PenaltyIndentedWhitespace: 0
188+
PenaltyReturnTypeOnItsOwnLine: 100000
189189
PointerAlignment: Right
190190
PPIndentWidth: -1
191191
QualifierAlignment: Leave
@@ -205,14 +205,14 @@ SortUsingDeclarations: LexicographicNumeric
205205
SpaceAfterCStyleCast: false
206206
SpaceAfterLogicalNot: false
207207
SpaceAfterTemplateKeyword: true
208+
SpaceAroundPointerQualifiers: Default
208209
SpaceBeforeAssignmentOperators: true
209210
SpaceBeforeCaseColon: false
210211
SpaceBeforeCpp11BracedList: false
211212
SpaceBeforeCtorInitializerColon: true
212213
SpaceBeforeInheritanceColon: true
213214
SpaceBeforeJsonColon: false
214215
SpaceBeforeParens: ControlStatements
215-
SpaceAroundPointerQualifiers: Default
216216
SpaceBeforeParensOptions:
217217
AfterControlStatements: true
218218
AfterForeachMacros: true
@@ -225,6 +225,7 @@ SpaceBeforeParensOptions:
225225
AfterRequiresInExpression: false
226226
BeforeNonEmptyParentheses: false
227227
SpaceBeforeRangeBasedForLoopColon: true
228+
SpaceBeforeSquareBrackets: false
228229
SpaceInEmptyBlock: false
229230
SpacesBeforeTrailingComments: 2
230231
SpacesInAngles: Never
@@ -233,9 +234,12 @@ SpacesInLineCommentPrefix:
233234
Minimum: 1
234235
Maximum: -1
235236
SpacesInParens: Never
237+
SpacesInParensOptions:
238+
InCStyleCasts: false
239+
InConditionalStatements: false
240+
InEmptyParentheses: false
241+
Other: false
236242
SpacesInSquareBrackets: false
237-
SpaceBeforeSquareBrackets: false
238-
BitFieldColonSpacing: Both
239243
Standard: Latest
240244
StatementAttributeLikeMacros: []
241245
StatementMacros: []

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ tests/axivion/qualification-test/qualification-kit/**/*.py -diff -merge -text
3434
*.jpg binary
3535

3636
*.sh text eol=lf
37+
tests/cli/helpers/test_misc/checksum_test.txt eol=lf

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/.vscode/
2-
/src/.vscode/
3-
/tests/unit/.vscode/
1+
**/.vscode/
42
/build/
53
/build-tools-tests/
64
/*build/
@@ -35,6 +33,8 @@ dictionary.dic
3533
file.log*
3634
lex.txt
3735

36+
*.egg-info
37+
dist/
3838
__pycache__
3939
.mypy_cache/
4040
/qa-chain/*

0 commit comments

Comments
 (0)