## mathematical issues

### mathematical issues

Lets start with why I have this question. I am working on developing support for the 88-91 preludes using the PK2 ecus. I have had a working mask for about two years, although limited to the six fuel tables, the six ignition tables, and the check sum on/off functionality. I took a break from this project for about 1.5 years other wise I believe I would have more.

The equation I am using for the fuel is D=(V*0.027)-(110.595*M)

The variables in this are D-duty cycle, V-raw table value in hex converted to decimal, and M-table multiplier.

In the PK2 ecus the table multiplier (M) is the first character on the left of the 16 bit fuel value. So for fuel value 6411, the 6 is the multiplier value (M).

So my question finally is, can I set tunerpro to only read the hex digit of the multiplier so I don't have to manually enter the value for M into the equation for each load cell as every cell has its own multiplier value unlike many popular Honda ECU codes.

I can't seem to find a way to set the definition of M to only read the first byte.

The equation I am using for the fuel is D=(V*0.027)-(110.595*M)

The variables in this are D-duty cycle, V-raw table value in hex converted to decimal, and M-table multiplier.

In the PK2 ecus the table multiplier (M) is the first character on the left of the 16 bit fuel value. So for fuel value 6411, the 6 is the multiplier value (M).

So my question finally is, can I set tunerpro to only read the hex digit of the multiplier so I don't have to manually enter the value for M into the equation for each load cell as every cell has its own multiplier value unlike many popular Honda ECU codes.

I can't seem to find a way to set the definition of M to only read the first byte.

M=value/4096 should work.

NismotronicSA Tuning Package/Powered by TunerCodeSA

Speed-Density Tuning for Nissans

Speed-Density Tuning for Nissans

I guess back to the drawing board. Thank you guys again for the help.

I guess I am in over my depth. I can't figure how to apply the ROUND to tuner pro. I guess this was all just a waste of time. Thank you guys for the help. I am by far a much greater pen and paper kinda math guy then computer math guy.

Last edited by luda8890 on Tue Mar 29, 2016 8:25 pm, edited 1 time in total.

D=(V*.027)-(110.595*(V>>12))

All is well now. Thank you guys for the help.

P.S. I do still feel like this is a waste of time, but it does keep my bussy