Add fw simulator

This commit is contained in:
jaseg 2020-04-20 13:37:13 +02:00
parent 87ae7dfcb3
commit ba4cad8888
4 changed files with 28 additions and 14 deletions

View file

@ -270,7 +270,8 @@ void group_received(struct dsss_demod_state *st) {
/* Search for weakest entry */
/* TODO figure out this fitness function */
float score = st->matcher_cache[i].last_score * (1.5f + 1.0f/st->matcher_cache[i].data_pos);
float score = st->matcher_cache[i].last_score * (1.5f + 0.1 * st->matcher_cache[i].data_pos);
if (debug) DEBUG_PRINTN(" score %zd %f %f %d", i, score, st->matcher_cache[i].last_score, st->matcher_cache[i].data_pos);
if (score < min_score) {
min_idx = i;
min_score = score;