Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1301ed8

Browse files
committed
Merge fix-no-comments-for-phys to dev
2 parents3223d48 +546e76a commit1301ed8

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_tCS :4;// Bits= 4
346346

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

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

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

409411
#ifdefTESTDB_USE_SIGFLOAT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp