map problem with 2D Table

D153, D175, C125, C127, C185 and C187 forum

map problem with 2D Table

Postby HMeier on Fri Feb 24, 2023 8:19 pm

Hello,
i have a problem with the 2D Table mapping.
I want map a CAN Signal/Channel raw data to a new Channel with other values.
The row data is from 0 to 8000 in hex -> 0 to 32768 in decimal.
My problem is that i can only enter decimal values to 32767.
In a CAN Simulation, if i send 8000hex/32768, the Display shows a -135.
Is there a solution how to fix that or a other posibillity how to Map Signals?

Best regards

[img]
32786.png
[/img]
Attachments
32786.png
32786.png (62.46 KiB) Viewed 2158 times
HMeier
 
Posts: 16
Joined: Fri Feb 10, 2023 12:22 am

Re: map problem with 2D Table

Postby David Ferguson on Fri Feb 24, 2023 11:40 pm

Change your CAN comms template to be unsigned, or use 32767 (the largest signed positive value you can have in 16 bits).
David Ferguson
Veracity Racing Data
David Ferguson
Pro User
 
Posts: 1410
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California

Re: map problem with 2D Table

Postby David Ferguson on Fri Feb 24, 2023 11:48 pm

Another way (incorrect, but easy), would be to add an entry for -32767 (8000 in hex for a signed value) to be 45 as well.
David Ferguson
Veracity Racing Data
David Ferguson
Pro User
 
Posts: 1410
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California


Return to Colour displays

Who is online

Users browsing this forum: No registered users and 11 guests