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.
VSS Code
-
- Posts: 9
- Joined: Tue Oct 04, 2011 1:21 pm
- cars: Pontiac Fiero GT
- Location: Walden, Colorado United States
- 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
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];
uint32_t VSS_PPK; // [225000000/X]
// Calc and limit the 8bit value
OperatingParams.Veh_Speed = CalData.VSS_PPK / OperatingParams.Filt_Digital[VSS];