* dynamic noise floor sampling

This commit is contained in:
Scott Powell
2025-05-25 21:44:15 +10:00
parent f2243b78ae
commit 0e35ae5ec6
4 changed files with 33 additions and 5 deletions

View File

@@ -16,7 +16,6 @@ protected:
void startRecv();
float packetScoreInt(float snr, int sf, int packet_len);
virtual bool isReceivingPacket() =0;
virtual float getCurrentRSSI() =0;
public:
RadioLibWrapper(PhysicalLayer& radio, mesh::MainBoard& board) : _radio(&radio), _board(&board) { n_recv = n_sent = 0; }
@@ -36,6 +35,11 @@ public:
return isChannelActive();
}
virtual float getCurrentRSSI() =0;
int getNoiseFloor() const override { return _noise_floor; }
void triggerNoiseFloorCalibrate() override;
void loop() override;
uint32_t getPacketsRecv() const { return n_recv; }