mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 16:55:52 +08:00
Clean up the RSSI code to work with negative values correctly.
This commit is contained in:
12
M17Control.h
12
M17Control.h
@@ -83,12 +83,12 @@ private:
|
||||
char* m_rfText;
|
||||
char* m_netText;
|
||||
CRSSIInterpolator* m_rssiMapper;
|
||||
unsigned char m_rssi;
|
||||
unsigned char m_maxRSSI;
|
||||
unsigned char m_minRSSI;
|
||||
unsigned int m_aveRSSI;
|
||||
int m_rssi;
|
||||
int m_maxRSSI;
|
||||
int m_minRSSI;
|
||||
int m_aveRSSI;
|
||||
unsigned int m_rssiCountTotal;
|
||||
unsigned int m_rssiAccum;
|
||||
int m_rssiAccum;
|
||||
unsigned int m_rssiCount;
|
||||
unsigned int m_bitsCount;
|
||||
unsigned int m_bitErrsAccum;
|
||||
@@ -118,7 +118,7 @@ private:
|
||||
|
||||
void writeJSONRF(const char* action, RPT_RF_STATE state, const std::string& source, const std::string& dest);
|
||||
void writeJSONRF(const char* action, float duration, float ber);
|
||||
void writeJSONRF(const char* action, float duration, float ber, unsigned char minRSSI, unsigned char maxRSSI, unsigned int aveRSSI);
|
||||
void writeJSONRF(const char* action, float duration, float ber, int minRSSI, int maxRSSI, int aveRSSI);
|
||||
|
||||
void writeJSONNet(const char* action, RPT_NET_STATE state, const std::string& source, const std::string& dest);
|
||||
void writeJSONNet(const char* action, float duration);
|
||||
|
||||
Reference in New Issue
Block a user