[Olsr-dev] LQ-FPM calc

Sven-Ola Tücke (spam-protected)
Thu May 29 09:51:58 CEST 2008


Oops. Wrong list. To translate: attached you'll find a small rework of 
lq_plugin_default_fpm.c. We calc FPMs with 19bit before comma and 12 bit 
after the comma which introduces rounding errors (1/12bit*12bit).

Didn't want to interfere with current reworks, so I didn't checked this into 
the gredler.at tree. Also a small side note: today MINIMAL_USEFUL_LQ=0.1 
while olsrd-5.5 defines MIN_LINK_QUALITY=0.01. So you need 25 out of 255 
hellos (instead 3 out of 255) to detect a link as valid - intention or not?

// Sven-Ola

Am Donnerstag 29 Mai 2008 09:42:16 schrieb Sven-Ola Tücke:
> Hey,
>
> anbei ein kleiner Rework des lq_plugin_fpm. Wir rechnen mit 19 Bit Vorkomma
> und 12 Bit Nachkomma. Bei 1(lq*nlq) und allen Werten <= 1.0 ist die
> Kalkulation nicht sehr genau 1/(12bit*12bit) => Rundungsfehler.
>
> Ich wuerde das in gredler.at einchecken, aber evnt. machts Konflikte mit
> Hennings struct-align-rework.
>
> PS: Als Anfrage: Minimal-LQ ist 0.1 neuerdings (war doch frueher 0.01).
> Macht 25 von 255 lost-hellos bevor ein Link gueltig wird (war frueher 3 von
> 255). Soll das so?
>
> // Sven-Ola






More information about the Olsr-dev mailing list