Hi, its me again.
Still working on the same program. The program just reads some values and puts them into an array.
This is timed, but not exaclty correct. It waits for 10ms and then counts 10 up one the time-variable.
When u have a measurement time of 3 hz, it waits until the remainder of time is 0.
I calculate this like so:
remainder = time / (1000 / rate)
So if rate = 3, the time has to be 333,3333333 to enter the while loop.
Thinking of this, the programs while loop has to run every ms, which is kinda impossible IMHO.
So how to solve this?
And then another problem, the while loop which has the calculate loop
etc inside of it, doesnt run on program execution. I'm wondering why
not...