aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-31 21:41:10 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-31 21:41:10 -0700
commit2199e490e0c47a267caab2795cdfe023aca1238d (patch)
tree6741131d052983afcc1777afe10f04a07b3d49df /src/main/java/org
parent0fc02b910558cbcf10fa82f92938475f52d39a52 (diff)
downloadtrackermap-server-2199e490e0c47a267caab2795cdfe023aca1238d.tar.gz
trackermap-server-2199e490e0c47a267caab2795cdfe023aca1238d.tar.bz2
trackermap-server-2199e490e0c47a267caab2795cdfe023aca1238d.zip
Decode engine data
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java b/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
index 6e9cf52a5..99f5c074c 100644
--- a/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
@@ -24,6 +24,7 @@ import org.traccar.BaseProtocolDecoder;
import org.traccar.DeviceSession;
import org.traccar.NetworkMessage;
import org.traccar.Protocol;
+import org.traccar.helper.BitUtil;
import org.traccar.helper.Checksum;
import org.traccar.helper.UnitsConverter;
import org.traccar.model.Position;
@@ -115,6 +116,8 @@ public class OmnicommProtocolDecoder extends BaseProtocolDecoder {
OmnicommMessageOuterClass.OmnicommMessage.General data = message.getGeneral();
position.set(Position.KEY_POWER, data.getUboard() * 0.1);
position.set(Position.KEY_BATTERY_LEVEL, data.getBatLife());
+ position.set(Position.KEY_IGNITION, BitUtil.check(data.getFLG(), 0));
+ position.set(Position.KEY_RPM, data.getTImp());
}
if (message.hasNAV()) {