An old thread & just revisiting this issue again ...re the spurious rejection, there's a setting as follows....
Presumably that setting is the amount of samples, before the averaging code accepts/adopts the new incoming sample (vs just throwing away a sample that diverges too much) ....but what is deemed a 'spurious' sample ..in other words what in the Darrel's code a couple of posts above decides that the incoming sample was spurious ...and can this 'sprurious diversion amount' be adjusted?Code:Reject CON 2 ' Spurious Rejection level
To help explain, consider the following trail of ADC samples...
99
101
100
91 ------ not spurious, just a low sample
97
101
50 -----------spurious
98
100
How is the spurious rejection set so as to accept the ADC rsample of 91, but to just reject the sample of 50?




Bookmarks