14 lignes
503 o
Text
14 lignes
503 o
Text
|
# Sonore
|
||
|
# A script used for antennas alignment: the higher-pitched the sound, the better the alignment
|
||
|
:local minStr -70
|
||
|
:local maxStr -50
|
||
|
:local minFreq 300
|
||
|
:local maxFreq 5000
|
||
|
:local a (($maxFreq - $minFreq) / ($maxStr - $minStr))
|
||
|
:local b ((($maxStr * $minFreq) - ($minStr * $maxFreq)) / ($maxStr - $minStr))
|
||
|
|
||
|
/interface wireless monitor [/interface find name=wlan1] duration=10s interval=0.02s do={
|
||
|
:if ($"status" = "connected-to-ess") do={
|
||
|
:beep frequency=(($"signal-strength" * $a) + $b)
|
||
|
}
|
||
|
}
|