Added 73 action and more appropriate all call responses. Added better handling of end of transmissions.

This commit is contained in:
Jordan Sherer
2018-07-19 10:35:00 -04:00
parent 7ecc550bc2
commit 052b81ec8f
2 changed files with 57 additions and 18 deletions
+3 -3
View File
@@ -47,15 +47,15 @@ QMap<QString, int> directed_cmds = {
//{"-", 6 }, // report -snr
// ...
{" 73", 28 }, // best regards, end of contact
{" RR", 29 }, // confirm message
{" AGN", 30 }, // repeat message
{" AGN?", 30 }, // repeat message
{" ", 31 }, // send freetext
};
QSet<int> allowed_cmds = {0, 2, 3, 29, 30, 31};
QSet<int> allowed_cmds = {0, 2, 3, 28, 29, 30, 31};
QRegularExpression directed_re(R"(^(?:(?<from>[A-Z0-9/]+):\s?)?(?<to>[A-Z0-9/]+)(?<cmd>(\s(?:RR|AGN[?]?)|[?$@&| ])))");
QRegularExpression directed_re(R"(^(?:(?<from>[A-Z0-9/]+):\s?)?(?<to>[A-Z0-9/]+)(?<cmd>(\s?(?:RR|AGN[?]|73)|[?$@&| ])))");
QMap<QChar, QString> huff = {
// char code weight