How to read PID that returns a float value

Inquiry and support for Freematics products
Post Reply
Nicholas
Posts: 6
Joined: Mon Mar 28, 2016 8:37 am

How to read PID that returns a float value

Post by Nicholas »

Hello,

How do I retrieve a PID's data that isnt a float?

For example i want the 'Fuel–Air Equivalence Ratio' which returns a value between 0 and 2.
But obviously its returning it as a int, so i only get values 0 and 1 lol.

Please help, this is the main PID that i need.

Thanks!
Nick
stanley
Site Admin
Posts: 1029
Joined: Sat Mar 01, 2014 3:15 am

Re: How to read PID that returns a float value

Post by stanley »

A workaround is to modify normalizeData() in OBD.cpp to map the value to 0-200.
Post Reply