add a lowest rssi

This commit is contained in:
PolynomialDivision 2017-12-12 10:42:50 +01:00
parent 9825ba64c8
commit f2c6f15dfc
4 changed files with 27 additions and 6 deletions

View file

@ -79,7 +79,8 @@ int eval_probe_metric(struct probe_entry_s probe_entry) {
}
score += (probe_entry.freq > 5000) ? dawn_metric.freq : 0;
score += (probe_entry.signal >= dawn_metric.min_rssi) ? dawn_metric.rssi : 0;
score += (probe_entry.signal >= dawn_metric.rssi_val) ? dawn_metric.rssi : 0;
score += (probe_entry.signal <= dawn_metric.low_rssi_val) ? dawn_metric.low_rssi : 0;
printf("SCORE: %d\n", score);
print_probe_entry(probe_entry);