aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-11 20:28:39 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-11 20:28:39 +1200
commita11b2887789f962a55dd3cd219b493f3a148ec98 (patch)
tree93292ee36cdf57fb877242410e7f91739b26879c /src
parent8aa35f1e9d3a32f7935415d1d910b4bc19f53df0 (diff)
downloadtrackermap-server-a11b2887789f962a55dd3cd219b493f3a148ec98.tar.gz
trackermap-server-a11b2887789f962a55dd3cd219b493f3a148ec98.tar.bz2
trackermap-server-a11b2887789f962a55dd3cd219b493f3a148ec98.zip
Add new Teltonika parameters
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 15c5b8e80..aa9bfe4fe 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -104,6 +104,15 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
case 9:
position.set(Position.PREFIX_ADC + 1, readValue(buf, length, false));
break;
+ case 17:
+ position.set("axisX", readValue(buf, length, true));
+ break;
+ case 18:
+ position.set("axisY", readValue(buf, length, true));
+ break;
+ case 19:
+ position.set("axisZ", readValue(buf, length, true));
+ break;
case 66:
position.set(Position.KEY_POWER, readValue(buf, length, false) * 0.001);
break;