Rossen Georgiev
2e9c4a9c56
parsing: refine PHGR code and update tests
2021-11-27 14:51:11 +00:00
TheCranston
dc90983cb6
Update common.py
...
This comprehends the PHGR custom message that MUST be terminated by "/" and the standard PHG message of 4 chars. The math "Should" be done for the "R" in terms of direction but that has been omitted.
2021-11-27 14:14:19 +00:00
Rossen Georgiev
09db998143
refine unsupported packet type message
2021-11-27 13:43:38 +00:00
Bill Mitchell
3c82d6463e
Moved unsupported format list to larger scope, use the dictionary keys
...
to test if a packet is in the unsupported list.
2021-11-27 13:22:46 +00:00
Bill Mitchell
e79aafe29a
Roll back previous commit
2021-11-27 13:20:56 +00:00
Bill Mitchell
3a12e45342
If parsing fails on body after succeeding on head, return the
...
partially-parsed packet as part of the error.
2021-11-27 13:20:56 +00:00
Bill Mitchell
a14da1d78d
When packet type is unsupported, give error message which specifies
...
the packet type.
2021-11-27 13:20:56 +00:00
Rossen Georgiev
4557e44e02
remove 3rd-party from unsupport list in the comment
2021-11-27 13:19:40 +00:00
Bill Mitchell
6b96f01db2
Added ParseError to third-party packet error handling
2021-11-27 12:10:20 +00:00
Bill Mitchell
3659faa509
Added third-party packet support
2021-11-27 12:10:20 +00:00
Rossen Georgiev
2f0f74a06d
fix SyntaxWarning for py38 and remove py33 on travis
2019-10-08 19:42:53 +01:00
Rossen Georgiev
c3c886e5c6
fix #54 ; getting a float instead of integer
2019-10-08 19:38:17 +01:00
Rossen Georgiev
94b89a6da4
parsing: fix incorrect parsing of msgNo
...
msgNo should accept alphanumeric characters
fix #36
2018-01-20 14:55:23 +00:00
Rossen Georgiev
acb4c66ff9
fix #39 ; typos
2018-01-20 14:38:23 +00:00
Rossen Georgiev
8a3a677c07
fix parsing of message ACK/REJ; #23
2017-01-28 23:22:21 +02:00
Rossen Georgiev
5563a6d8c7
refactor total_seconds() for py2.6 comp
2016-08-16 22:28:00 +01:00
Rossen Georgiev
9e6c292422
fix incorrect caputation of timestamp in some cases
2016-08-16 21:50:21 +01:00
Rossen Georgiev
202dc8fa0e
fix value error when parsing course & speed
2016-03-17 21:22:55 +00:00
Rossen Georgiev
0ea9f1dede
fix undefined packet reference in parsing.position
2016-03-17 20:54:49 +00:00
Rossen Georgiev
2724d6682a
fix fail to parse telem config with end whitespace
2016-03-04 07:42:07 +00:00
Rossen Georgiev
44dd7da2ed
added tests for parsing.common #15
2016-01-27 13:55:10 +00:00
Rossen Georgiev
68190860b7
removed _ prefix from most parse functions
2016-01-27 07:47:53 +00:00
Rossen Georgiev
3a83822674
tiny reorganization in parsing.weather
2016-01-25 11:57:40 +00:00
Rossen Georgiev
633ad2ea84
added DAO parsing, fix #14
2016-01-23 07:17:34 +00:00
Rossen Georgiev
4b6ee9f27d
clean up unused variables #13
2016-01-21 05:52:19 +00:00
Rossen Georgiev
88a15770ff
added invalid & user-defined parsing
2016-01-21 05:00:41 +00:00
Rossen Georgiev
25dc1c0577
split parsing module into submodules
2016-01-21 04:38:57 +00:00
Rossen Georgiev
8dce8866f0
use absolute imports
2016-01-21 02:18:00 +00:00
Rossen Georgiev
17d06ac5f8
turned parsing module to a package
2016-01-21 00:00:56 +00:00