??? 03/11/09 09:33 Read: times |
#163339 - All depends on the input scale Responding to: ???'s previous message |
But that solution is only valid if the speed is already converted from pulses - time into something that is scaled in mph.
If the speed is k*mpk, where k is possibly not even an integer, then the simple divide-by-10 will not work. Then it will be required to do the linearized bisection, or go for an integer scaling (the exponent part). I did write my solution under the assumption that the speed was in mph, but was taking a chance on that :) But the important thing is that if the speed is computed from pulses, then there is always a k factor involved when changing pulse count into a speed. If that part is correct, then this part with the diode bar will be home-free. |