Variables used for offset stabilization algorithm.
Data Fields | |
uint8_t | lastSeen_good_drift_index |
uint8_t | driftThreshold |
uint8_t | num_entries_index |
uint8_t | binFull |
int32_t | correction [OFFSET_ALGO_BIN_SIZE] |
uint8_t timeSync_Offset_Stable_Algo_t::lastSeen_good_drift_index |
Count for last sync which had drift lower than threshold. This index keeps incrementing for every sync frame and gets reset to 0 if it crosses a threshold.
uint8_t timeSync_Offset_Stable_Algo_t::driftThreshold |
Only offsets lower than this threshold are recorded for purpose of stabilization
uint8_t timeSync_Offset_Stable_Algo_t::num_entries_index |
Counter for recording the offsets
uint8_t timeSync_Offset_Stable_Algo_t::binFull |
Indicating to the averaging algo to process the data in the array
int32_t timeSync_Offset_Stable_Algo_t::correction[OFFSET_ALGO_BIN_SIZE] |
Array of correction values with low drift which are clustered together