Hi, in example code “simple_rx_pdoa.c” is part about “checking STS quality and STS status”:
int goodSts = 0; /* Used for checking STS quality in received signal /
int16_t stsQual; / This will contain STS quality index */
// Checking STS quality and STS status. See note 4
if (((goodSts = dwt_readstsquality(&stsQual)) >= 0))
{
pdoa_val = dwt_readpdoa();
}
I checked the note 4 and I found info like that:
“The STS is considered good when the (STS) quality index is greater than a specified threshold value, which is a percentage of the configured STS length. These thresholds have been set as hard coded values in the device driver code.”
Why in example code is that “>=0”. What does it mean? Is this that “specified threshold value”? If yes, does “>=0” mean that the STS quality is good or not?