aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-04 00:32:44 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-04 00:32:44 -0800
commit83148e8750ba9689b4dc53f586e0ce1e23cf2032 (patch)
treed96c6bd1902ea256051679d37c3cf165e8a4a53b /src/main/java/org
parent455f96fb074cb02825c8303d0aa8eff0a848e9fd (diff)
downloadtraccar-server-83148e8750ba9689b4dc53f586e0ce1e23cf2032.tar.gz
traccar-server-83148e8750ba9689b4dc53f586e0ce1e23cf2032.tar.bz2
traccar-server-83148e8750ba9689b4dc53f586e0ce1e23cf2032.zip
Convert sensor data
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/BceProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
index 54136382c..1b354c861 100644
--- a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
@@ -217,9 +217,9 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedShortLE();
}
if (BitUtil.check(mask, 6)) {
- position.set("maxAcceleration", buf.readUnsignedByte());
- position.set("maxBraking", buf.readUnsignedByte());
- position.set("maxCornering", buf.readUnsignedByte());
+ position.set("maxAcceleration", buf.readUnsignedByte() * 0.02);
+ position.set("maxBraking", buf.readUnsignedByte() * 0.02);
+ position.set("maxCornering", buf.readUnsignedByte() * 0.02);
}
if (BitUtil.check(mask, 7)) {
buf.skipBytes(16);