[Olsr-dev] Maximal LQ less than 1 on Ethernet

Henning Rogge (spam-protected)
Thu Jun 19 12:39:32 CEST 2008

Am Donnerstag 19 Juni 2008 10:56:29 schrieb Hannes Gredler:
> what about a simple roundup()
> if (measured_lq >= old_LQ) && measured_lq >= 0.999)
Bad idea, because the value never gets to 0.999... we would have to roundup 
anything above 0.9.

Am Donnerstag 19 Juni 2008 10:55:34 schrieb L. Aaron Kaplan:
> or - maybe use floats or doubles ? ;-)
> (and then later convert to ints in a reasonable range)
> The overhead of using floats here does not seem to be sooo high since
> we have a 2 "*"  and 2 +/-  OPs per packet, right.
> It is not like we therefore need to use floats everywhere (again). Or
> did I misunderstand something?
We would have to use floats for every link every second. I don't think we want 
the floats back, we just got them out. ;)

I'm experimenting with using a FPM variable as LQ storage at the moment.


Diplom Informatiker Henning Rogge
Forschungsgesellschaft für
Angewandte Naturwissenschaften e. V. (FGAN) 
Neuenahrer Str. 20, 53343 Wachtberg, Germany
Tel.: 0049 (0)228 9435-961
Fax: 0049 (0)228 9435-685
E-Mail: (spam-protected)
Web: www.fgan.de
Sitz der Gesellschaft: Bonn
Registergericht: Amtsgericht Bonn VR 2530
Vorstand: Dr. rer. nat. Ralf Dornhaus (Vors.), Prof. Dr. Joachim Ender 

More information about the Olsr-dev mailing list