VSS Code

For discussion and distribution of custom code and hacks
chetw77cruiser
Posts: 9
Joined: Tue Oct 04, 2011 1:21 pm
cars: Pontiac Fiero GT
Location: Walden, Colorado United States

Re: VSS Code

Post by chetw77cruiser »

How about for miles at 4000 pulse p mile. I wnat to make sure my numbers are the same. By the way, thank you for the help.

The speedometer currently has an auto-calibration function that relies on the ppm of the vss, so if I can keep all the math correct and use this variable, this will be a good thing.
User avatar
VL400
Posts: 4991
Joined: Sun Mar 01, 2009 2:54 pm
cars: VL Calais and Toyota Landcruiser. Plus some toys :)
Location: Perth, WA
Contact:

Re: VSS Code

Post by VL400 »

What about writing it in C? Makes it really easy to calc the VSS. A quick and dirty approach from a MAF adjuster I have been playing around with, the VSS counter is a 250KHz 32bit counter....

uint32_t VSS_PPK; // [225000000/X]

// Calc and limit the 8bit value
OperatingParams.Veh_Speed = CalData.VSS_PPK / OperatingParams.Filt_Digital[VSS];
Post Reply