aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-29 19:23:32 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-29 19:23:32 -0700
commit12ac2cf773b6fa621b48dc6177d8245e038a8918 (patch)
treebec56b16ac256537ae84b8bdc770ca4e99588755 /test
parent1f710ea91b25aec02d04b69e5b9f6dbd96230a82 (diff)
downloadtrackermap-server-12ac2cf773b6fa621b48dc6177d8245e038a8918.tar.gz
trackermap-server-12ac2cf773b6fa621b48dc6177d8245e038a8918.tar.bz2
trackermap-server-12ac2cf773b6fa621b48dc6177d8245e038a8918.zip
Support decimal heading values
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/XirgoProtocolDecoderTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/XirgoProtocolDecoderTest.java b/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
index b2e023574..f795742fd 100644
--- a/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/XirgoProtocolDecoderTest.java
@@ -10,6 +10,14 @@ public class XirgoProtocolDecoderTest extends ProtocolTest {
XirgoProtocolDecoder decoder = new XirgoProtocolDecoder(null);
+ decoder.setForm("UID,EV,D,T,LT,LN,AL,GSPT,HD,SV,HP,BV,CQ,GS,SI,IG,OT");
+
+ verifyPosition(decoder, text(
+ "$$183900034,4002,03/30/2019,02:15:22,46.848577,-114.022213,978,0.0,172.3,16,1.2,13.291,20,3,2,2,1##"));
+
+ verifyPosition(decoder, text(
+ "$$184800793,4002,03/30/2019,02:10:13,46.848600,-114.022256,9723,0.0,1645,17,1.2,13.283,18,3,89011703278246523594,2,0##"));
+
decoder.setForm("UID,EV,D,T,LT,LN,AL,GSPT,SV,HP,BV,CQ,MI,GS,SI,IG,OT");
verifyPosition(decoder, text(