diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-21 17:50:10 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-21 17:50:10 -0700 |
commit | 8d41fb57d1c753433654569d828345592f2fab10 (patch) | |
tree | 81d7dab77d8ce2961af0e3579155a82cb799a3fa | |
parent | 82ab794c56d98a1aae8ea261ee709fecac9fbc54 (diff) | |
download | trackermap-server-8d41fb57d1c753433654569d828345592f2fab10.tar.gz trackermap-server-8d41fb57d1c753433654569d828345592f2fab10.tar.bz2 trackermap-server-8d41fb57d1c753433654569d828345592f2fab10.zip |
Flespi add driver behavior
-rw-r--r-- | src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java b/src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java index 75f2b0e89..281a8a84f 100644 --- a/src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/FlespiProtocolDecoder.java @@ -228,6 +228,15 @@ public class FlespiProtocolDecoder extends BaseHttpProtocolDecoder { position.set(Position.KEY_ALARM, Position.ALARM_BONNET); } return true; + case "custom.wln_accel_max": + position.set("maxAcceleration", ((JsonNumber) value).doubleValue()); + return true; + case "custom.wln_brk_max": + position.set("maxBraking", ((JsonNumber) value).doubleValue()); + return true; + case "custom.wln_crn_max": + position.set("maxCornering", ((JsonNumber) value).doubleValue()); + return true; default: return false; } |