From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] VIS labels
Date: Sat, 18 Jul 2009 13:38:56 +0800 [thread overview]
Message-ID: <200907181338.56870.lindner_marek@yahoo.de> (raw)
In-Reply-To: <4A60FE9A.8040403@gmail.com>
On Saturday 18 July 2009 06:43:38 Sebastián D. Criado wrote:
> In http://www.open-mesh.net/browser/trunk/vis/vis.c
> i saw the following calculation.
>
> orig_node->tq_max/(float)neigh->tq_avg
>
> for link quality (VIS label).
>
> If this is correct, would not be so linear.
> Am I wrong?
The given code converts batman's own format into the format I mentioned
earlier. Currently, batman uses a so called TQ value which expresses link
quality as well and has its max value at 255. Performance considerations led
to this kind of representation (you want to avoid float operations on embedded
devices). Imagine a link quality of 66.6%:
255 (TQ max) * 66.6% = 170
255 / 170 [orig_node->tq_max/(float)neigh->tq_avg] = 1.5 (vis label)
100 / 1.5 [100 / $number] = 66.6% (link quality)
May be I should put that in the wiki somewhere ... :-)
Regards,
Marek
next prev parent reply other threads:[~2009-07-18 5:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 14:55 [B.A.T.M.A.N.] VIS labels Gustavo Lindberg
2009-07-17 13:54 ` Marek Lindner
2009-07-17 15:12 ` "Sebastián D. Criado"
2009-07-17 18:52 ` Marek Lindner
2009-07-17 22:43 ` "Sebastián D. Criado"
2009-07-18 5:38 ` Marek Lindner [this message]
2009-07-18 15:32 ` "Sebastián D. Criado"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200907181338.56870.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox