summaryrefslogtreecommitdiff
path: root/controller/fw/src
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2020-04-20 13:37:13 +0200
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2020-04-20 13:37:13 +0200
commitba4cad888865cd19e14cde42c03cc50f2a0745ab (patch)
treeb1a75ee2cdfb1b6228a975690381cc4e5783fc0e /controller/fw/src
parent87ae7dfcb35d9a55950eecc2116d13d73b2b9ece (diff)
downloadmaster-thesis-ba4cad888865cd19e14cde42c03cc50f2a0745ab.tar.gz
master-thesis-ba4cad888865cd19e14cde42c03cc50f2a0745ab.tar.bz2
master-thesis-ba4cad888865cd19e14cde42c03cc50f2a0745ab.zip
Add fw simulator
Diffstat (limited to 'controller/fw/src')
-rw-r--r--controller/fw/src/dsss_demod.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/fw/src/dsss_demod.c b/controller/fw/src/dsss_demod.c
index 58dae9a..ad44b29 100644
--- a/controller/fw/src/dsss_demod.c
+++ b/controller/fw/src/dsss_demod.c
@@ -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;