Page 1 of 1

How to read PID that returns a float value

Posted: Thu Mar 31, 2016 8:04 am
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

Re: How to read PID that returns a float value

Posted: Sat Apr 02, 2016 9:38 am
by stanley
A workaround is to modify normalizeData() in OBD.cpp to map the value to 0-200.