mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-08-01 18:20:10 +00:00
Adds internal/lora package skeleton (stubbed TimeOnAir returns 0,
PreambleForSF returns 0) plus failing tests that assert the closed-form
LoRa Time-on-Air values for the deployment's actual preset
(869.6 MHz / BW 62.5 kHz / SF 8 / CR 4/5, preamble 32 from firmware
preambleLengthForSF).
Rewrites cmd/server/relay_airtime_share_test.go acceptance suite to:
- require a 'preset' block on the JSON response (caption needs it)
- assert ADVERT airtime share follows true ToA (~83.48 %) on a
single-relay ADVERT vs single-relay ACK, NOT the byte proxy's
95.24 % — negative gate guarantees the implementation actually
swaps the score formula, not just renames it.
Tests fail with assertion errors (not build errors). Green commit
in the next push wires the formula and the config preset.