aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NavisProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-23 17:14:47 +1000
committerGitHub <noreply@github.com>2016-08-23 17:14:47 +1000
commite911fa2c7e4138b1edaa95ab603617660cea0462 (patch)
tree8b07a5f6c4e272eb3d574ad2398442b07c848fe6 /src/org/traccar/protocol/NavisProtocolDecoder.java
parent6c6b62351aadd68928b9bd3e39e2bf96d78695e8 (diff)
parentf9065826c7855d1344ba75a4eb46da325eb91cab (diff)
downloadtrackermap-server-e911fa2c7e4138b1edaa95ab603617660cea0462.tar.gz
trackermap-server-e911fa2c7e4138b1edaa95ab603617660cea0462.tar.bz2
trackermap-server-e911fa2c7e4138b1edaa95ab603617660cea0462.zip
Merge pull request #2240 from Abyss777/odometer
Odometer units for first part of protocols
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/NavisProtocolDecoder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java
index 72c5f53c3..03e578fe9 100644
--- a/src/org/traccar/protocol/NavisProtocolDecoder.java
+++ b/src/org/traccar/protocol/NavisProtocolDecoder.java
@@ -147,9 +147,8 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder {
position.setSpeed(buf.readFloat());
position.setCourse(buf.readUnsignedShort());
- position.set(Position.KEY_ODOMETER, buf.readFloat());
-
- position.set("segment", buf.readFloat()); // last segment
+ position.set(Position.KEY_ODOMETER, buf.readFloat() * 1000);
+ position.set(Position.KEY_DISTANCE, buf.readFloat());
// Segment times
buf.readUnsignedShort();