-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for floating point signals.
We add support for the SIG_VALTYPE_ DBC declaration for 32-bit floating point signals, in addition to the already existing support for integer typed signals. In this commit only SIG_VALTYPE : 1 is supported for floating points, due to inabillity to test 64-bit floating point signals for the time.
- Loading branch information
Showing
11 changed files
with
570 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
testdata/dbc-invalid/example/example_float32_invalid_signal_length.dbc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
VERSION "" | ||
|
||
NS_ : | ||
|
||
BS_: | ||
|
||
BU_: DBG IO | ||
|
||
BO_ 42 IOFloat32: 8 IO | ||
SG_ Float32Signal : 0|16@1- (1,0) [0|0] "" DBG | ||
|
||
SIG_VALTYPE_ 42 Float32Signal: 1; |
12 changes: 12 additions & 0 deletions
12
testdata/dbc-invalid/example/example_float32_invalid_signal_name.dbc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
VERSION "" | ||
|
||
NS_ : | ||
|
||
BS_: | ||
|
||
BU_: DBG IO | ||
|
||
BO_ 42 IOFloat32: 8 IO | ||
SG_ Float32Signal : 0|32@1- (1,0) [0|0] "" DBG | ||
|
||
SIG_VALTYPE_ 42 SomeOtherSignal: 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
VERSION "" | ||
|
||
NS_ : | ||
|
||
BS_: | ||
|
||
BU_: DBG IO | ||
|
||
BO_ 42 IOFloat64: 8 IO | ||
SG_ Float64Signal : 0|64@1- (1,0) [0|0] "" DBG | ||
|
||
SIG_VALTYPE_ 42 Float64Signal: 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.