Well, I figured rounding down to the neares 0.1 rpm out of 20000 rpm would not make much of a difference ;). I don't think we need anything orange here. 😄
@C. Minnella wrote:
Really minor, but I think I would replace the Quotient & Remainder with a divide, and you could even use a floating point type for the speed control.
@Vr6Fidelity wrote:
So I converted the displays over to I64.
@Vr6Fidelity wrote:
Im not really sure what the difference is between a U8, I8, etc.
Message Edited by altenbach on 08-03-2007 08:12 AM
The numbers still add up to crazy high values like for example the speed at 30,000 reads 532,000 or so.
Everything is working now, thanks to all of you. ![]()
Quick question, Everything is working well now and I am very pleased.
The voltage value that I am reading is changing a 2KHZ and since I am sampling it at the relativly slow speed of 4S/Sec It is a bit "Jittery"
I would like to make a running average of the last 10 samples. I know I need to use a shift register somehow, build an Array, sum the array elements and then divide by the number of array elements.
How do i make an array where the new value written "bumps" the bottom value out of the array?
I was thinking something along these lines? How do i make it have 10 points and the bumping action?