* dynamic noise floor sampling

이 커밋은 다음에 포함됨:
Scott Powell
2025-05-25 21:44:15 +10:00
부모 f2243b78ae
커밋 0e35ae5ec6
4개의 변경된 파일33개의 추가작업 그리고 5개의 파일을 삭제
+5 -1
파일 보기
@@ -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; }