ADD: 'lf search' - @marshmellow42 's check if signal is noice.

This commit is contained in:
iceman1001 2017-02-04 12:41:30 +01:00
commit 3f84d47369
3 changed files with 39 additions and 23 deletions

View file

@ -268,3 +268,16 @@ uint8_t fskClocks(uint8_t *fc1, uint8_t *fc2, uint8_t *rf1, bool verbose)
}
return 1;
}
// test samples are not just noise
bool graphJustNoise(int *BitStream, int size)
{
//might not be high enough for noisy environments
#define THRESHOLD 15;
bool isNoise = TRUE;
for(int i=0; i < size && isNoise; i++){
isNoise = BitStream[i] < THRESHOLD;
}
return isNoise;
}