diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-01-18 22:30:42 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-01-18 22:30:42 -0800 |
commit | c31414d53e1b6e5427202c826f887d5f3b4be913 (patch) | |
tree | 7dba9e9b706bad309272743ed15ae6e3ededd31a /src/main/java/org | |
parent | 48ec866d8e50ce2ef63ca336648db611cc233916 (diff) | |
download | trackermap-server-c31414d53e1b6e5427202c826f887d5f3b4be913.tar.gz trackermap-server-c31414d53e1b6e5427202c826f887d5f3b4be913.tar.bz2 trackermap-server-c31414d53e1b6e5427202c826f887d5f3b4be913.zip |
Fix odometer decoding
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/NetProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/NetProtocolDecoder.java b/src/main/java/org/traccar/protocol/NetProtocolDecoder.java index 61cb29b6b..c71a792a2 100644 --- a/src/main/java/org/traccar/protocol/NetProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/NetProtocolDecoder.java @@ -81,7 +81,7 @@ public class NetProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_STATUS, parser.nextHexLong()); position.setSpeed(parser.nextHexInt() * 0.01); - position.set(Position.KEY_ODOMETER, parser.nextHexInt()); + position.set(Position.KEY_ODOMETER, parser.nextHexInt() * 1852.0 / 16); position.setCourse(parser.nextHexInt()); parser.nextHexInt(); // alarm |