Unable to get result data as float/double (decimal number)

Inquiry and support for Freematics products
Post Reply
adavies1106
Posts: 2
Joined: Fri Apr 12, 2019 11:43 pm

Unable to get result data as float/double (decimal number)

Post by adavies1106 »

Hi,

So after a looking through how the result data from readPID is being processed, I see that the result data is always an int. I know this is because of the hex2uint16 and hex2uint8 functions in OBD2UART.cpp. My question is: how can I get result data from defined PIDs that is in double/float/any other decimal number format?

If I were to want to get timing advance or intake manifold pressure data from the ECU, not aftermarket sensors, through the OBD2UART adapter, how can I get these and other pieces of data as numbers with decimal points/higher precision? Is this a problem with how CANbus data is being decoded by this library? Is this even possible with this setup? I'm using a V2.1 and would think we would be able to access this data in a precise format.
Post Reply