* new packet score function

此提交包含在:
Scott Powell
2025-02-04 15:00:28 +11:00
父節點 7da0a5f7ec
當前提交 a93412216a
共有 6 個檔案被更改,包括 28 行新增21 行删除
+1 -6
查看文件
@@ -21,11 +21,6 @@ public:
float packetScore(float snr, int packet_len) override {
int sf = ((CustomSX1268 *)_radio)->spreadingFactor;
const float A = 0.7;
const float B = 0.4;
float ber = exp(-pow(10, (snr / 10)) / (A * pow(10, (snr / 10)) + B * (1 << sf)));
return pow(1 - ber, packet_len * 8);
return packetScoreInt(snr, sf, packet_len);
}
};