xela144 / CANaconda

CANaconda project: CAN message viewer
GNU General Public License v3.0
10 stars 0 forks source link

Some values are decoded as valid even though they are invalid #41

Open Susurrus opened 10 years ago

Susurrus commented 10 years ago

I'm looking at PGN126992 and decoding messages where the days are invalid 0xFFFF and the seconds are invalid as well 0xFFFFFFFF. The CANaconda program properly decodes the Days since epoch as NaN, while 429496.7295 is what is decoded for the seconds field. This is likely because there is a scaling on the seconds, while the days field doesn't have a scaling.

Susurrus commented 10 years ago

Looks like this also applies to PGN 129025 as I have invalid values for both Latitude and Longitude, but they're being parsed like they are valid.