Content-Length: 321863 | pFad | https://github.com/astand/c-coderdbc/commit/1301ed8d513da33db517109603e9e6731be5f10d

DE Merge fix-no-comments-for-phys to dev · astand/c-coderdbc@1301ed8 · GitHub
Skip to content

Commit 1301ed8

Browse files
committed
Merge fix-no-comments-for-phys to dev
2 parents 3223d48 + 546e76a commit 1301ed8

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

docs/RELEASES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2020
### Fixed
2121
- Head part info conversion to source code comments in mon-generator module
2222
- FindVersion function improved
23+
- Missing comments from dbc for signals based on real data types (floating-point variables, denoted by '_ro' and '_phys').
2324

2425
## [v3.0] - 2023-10-09
2526

src/parser/dbcscanner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void DbcScanner::ParseOtherInfo(istream& readstrm)
187187
{
188188
for (size_t i = 0; i < msg->Signals.size(); i++)
189189
{
190-
if (cmmnt.SigName == msg->Signals[i].Name)
190+
if ((cmmnt.SigName == msg->Signals[i].Name) || ((cmmnt.SigName + "_ro") == msg->Signals[i].Name))
191191
{
192192
SignalDescriptor_t& sig = msg->Signals[i];
193193
// signal has been found, update commnet text

test/gencode/lib/testdb.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ typedef struct
344344
// <Checksum:kXor4:1>
345345
uint8_t CS : 4; // Bits= 4
346346

347+
// Test floating point value.
347348
uint16_t Accel_ro; // Bits=12 Offset= -100.0 Factor= 0.1 Unit:'m/s'
348349

349350
#ifdef TESTDB_USE_SIGFLOAT
@@ -404,6 +405,7 @@ typedef struct
404405
// <Checksum:kXor4:1>
405406
uint8_t CS; // Bits= 4
406407

408+
// Test floating point value.
407409
uint16_t Accel_ro; // Bits=12 Offset= -100.0 Factor= 0.1 Unit:'m/s'
408410

409411
#ifdef TESTDB_USE_SIGFLOAT

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/astand/c-coderdbc/commit/1301ed8d513da33db517109603e9e6731be5f10d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy