Преглед изворни кода

fix(channels): self-heard threshold at -60 so the strong mesh becomes tabs too (#1242)

Own networks at -60 or stronger are reference tabs; weaker own and neighbors stay real-height bells. #1214
Nacho пре 2 месеци
родитељ
комит
e19bec938c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/src/components/channels/ChannelSpectrum.tsx

+ 2 - 2
app/src/components/channels/ChannelSpectrum.tsx

@@ -262,7 +262,7 @@ export function ChannelSpectrum({
         // propias auto-oidas (>= -45) son una PESTAÑA de referencia en el
         // borde superior; las propias LEJANAS de la malla (-50..) y las
         // vecinas van a su altura real.
-        const selfHeard = n.own && n.signal >= -45
+        const selfHeard = n.own && n.signal >= -60
         if (selfHeard) {
           const halfTab = Math.max((0.75 * slotW * Math.min(n.widthMhz, 20)) / 20, slotW * 0.4)
           g.beginPath()
@@ -307,7 +307,7 @@ export function ChannelSpectrum({
           .sort((a, b) => Number(b.own ?? false) - Number(a.own ?? false) || b.signal - a.signal)
         const rows: { px: number; py: number }[][] = [[], []]
         for (const n of labelables) {
-          const selfHeardLbl = n.own && n.signal >= -45
+          const selfHeardLbl = n.own && n.signal >= -60
           const px = Math.min(Math.max(xch(n.channel), PAD.l + 42), w - PAD.r - 42)
           const peakY = selfHeardLbl ? PAD.t + 2 : y(Math.max(n.signal, DBM_TOP))
           for (const rowIdx of [0, 1]) {