aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TramigoProtocolDecoder.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-04 22:42:20 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 22:42:20 -0500
commitf7da653ee14f471cf3d482690e7c659297514ab9 (patch)
tree886e617550b494d32444ac8c2eec155a5b56dbc1 /src/org/traccar/protocol/TramigoProtocolDecoder.java
parent525db3566a9e17f626d34e498c85e02d382d6655 (diff)
downloadtrackermap-server-f7da653ee14f471cf3d482690e7c659297514ab9.tar.gz
trackermap-server-f7da653ee14f471cf3d482690e7c659297514ab9.tar.bz2
trackermap-server-f7da653ee14f471cf3d482690e7c659297514ab9.zip
Removed old comments that have been made redundant, as requested;
Diffstat (limited to 'src/org/traccar/protocol/TramigoProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TramigoProtocolDecoder.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/TramigoProtocolDecoder.java b/src/org/traccar/protocol/TramigoProtocolDecoder.java
index 8e14debd4..8a6f49ef0 100644
--- a/src/org/traccar/protocol/TramigoProtocolDecoder.java
+++ b/src/org/traccar/protocol/TramigoProtocolDecoder.java
@@ -82,19 +82,19 @@ public class TramigoProtocolDecoder extends BaseProtocolDecoder {
position.setLatitude(buf.readUnsignedInt() * 0.0000001);
position.setLongitude(buf.readUnsignedInt() * 0.0000001);
- position.set(Position.KEY_RSSI, buf.readUnsignedShort()); // GSM signal quality
- position.set(Position.KEY_SATELLITES, buf.readUnsignedShort()); // satellites in fix
- position.set(Position.KEY_SATELLITES_VISIBLE, buf.readUnsignedShort()); // satellites in track
- position.set("gpsAntennaStatus", buf.readUnsignedShort()); // GPS antenna state
+ position.set(Position.KEY_RSSI, buf.readUnsignedShort());
+ position.set(Position.KEY_SATELLITES, buf.readUnsignedShort());
+ position.set(Position.KEY_SATELLITES_VISIBLE, buf.readUnsignedShort());
+ position.set("gpsAntennaStatus", buf.readUnsignedShort());
position.setSpeed(buf.readUnsignedShort() * 0.194384);
position.setCourse((double) buf.readUnsignedShort());
- position.set(Position.KEY_ODOMETER, buf.readUnsignedInt()); // distance
+ position.set(Position.KEY_ODOMETER, buf.readUnsignedInt());
position.set(Position.KEY_BATTERY, buf.readUnsignedShort());
- position.set(Position.KEY_CHARGE, buf.readUnsignedShort()); // battery charger status
+ position.set(Position.KEY_CHARGE, buf.readUnsignedShort());
position.setTime(new Date(buf.readUnsignedInt() * 1000));