collin80 / SavvyCAN

QT based cross platform canbus tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fractional numbers not displayed properly in interpreted view with VAL defined

Ingineerix opened this issue · comments

commented

Assuming a DBC like this:

BO_ 1 Demo: 1 Vector__XXX
   SG_ testByte : 0|8@1- (0.01,0) [-1.26|1.26] "" Vector__XXX
VAL_ 1 testByte -127 "SNA" ;

SavvyCAN displays decoded values only as whole numbers once it has the SNA set in VAL, This should display 0.45:

2D    <Interpreted>
Demo
testByte: 0

This one should display -0.97:

9F    <Interpreted>
Demo
testByte: 0

If I remove the VAL it works ok.