aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-02-15 11:16:43 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-02-15 11:16:43 -0800
commit81858280f7477da619aaf1adca972827847b47cb (patch)
treeea35b800cd6571b402002e9d60de10a9dfde8d4c /src/main/java/org
parent8bf4c171e1771eb89506a87ba8435776ee61286e (diff)
downloadtraccar-server-81858280f7477da619aaf1adca972827847b47cb.tar.gz
traccar-server-81858280f7477da619aaf1adca972827847b47cb.tar.bz2
traccar-server-81858280f7477da619aaf1adca972827847b47cb.zip
Decode driving behavior
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/BceProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
index c71cdffd9..68d4447ec 100644
--- a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2020 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -217,9 +217,9 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedShortLE();
}
if (BitUtil.check(mask, 6)) {
- buf.readUnsignedByte(); // maximum acceleration
- buf.readUnsignedByte(); // maximum deceleration
- buf.readUnsignedByte(); // maximum cornering
+ position.set("maxAcceleration", buf.readUnsignedByte());
+ position.set("maxBraking", buf.readUnsignedByte());
+ position.set("maxCornering", buf.readUnsignedByte());
}
if (BitUtil.check(mask, 7)) {
buf.skipBytes(16);