Add bits accessor for decodedtext

This commit is contained in:
Jordan Sherer 2018-07-12 16:35:00 -04:00
parent 4e66e92671
commit 705244786e

View File

@ -50,6 +50,8 @@ public:
bool isLowConfidence () const; bool isLowConfidence () const;
int frequencyOffset() const; // hertz offset from the tuned dial or rx frequency, aka audio frequency int frequencyOffset() const; // hertz offset from the tuned dial or rx frequency, aka audio frequency
int snr() const; int snr() const;
bool hasBits() const { return !string_.right(5).trimmed().isEmpty(); }
int bits() const { return string_.right(5).trimmed().toShort(); }
float dt() const; float dt() const;
// find and extract any report. Returns true if this is a standard message // find and extract any report. Returns true if this is a standard message