In addition to what I have previously written:
I am already running the same code with floating point calculations on both
the pc and µc and am not getting the same results. After a while, the results drift away.
The code is a iterative filter, so it uses results from the previous steps.
I am aware of rounding errors etc. but am not experienced enough to find a solution to that "drifting away".
if I would use double instead of float on the µC that drifting should appear at a later step.. Or am I wrong?
Sureley it depends on the range of the numbers the algorithm is struggling with..
I appreciate any help or hint , even to literature..
regards
lu