diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-27 12:18:31 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-27 12:18:31 +1200 |
commit | 27055e0bf5f544552c227da10badff34a71cfb70 (patch) | |
tree | fa49594c393e42a1221009c1e6d309b06452e794 /src/org/traccar/protocol/NavigilProtocolDecoder.java | |
parent | 42406b4d6a32db0d438447a5fce114669810d746 (diff) | |
download | trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.tar.gz trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.tar.bz2 trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.zip |
Remove unnecessary type casts
Diffstat (limited to 'src/org/traccar/protocol/NavigilProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/NavigilProtocolDecoder.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/NavigilProtocolDecoder.java b/src/org/traccar/protocol/NavigilProtocolDecoder.java index 9722e98a2..501f1bb39 100644 --- a/src/org/traccar/protocol/NavigilProtocolDecoder.java +++ b/src/org/traccar/protocol/NavigilProtocolDecoder.java @@ -94,14 +94,14 @@ public class NavigilProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(buf.readInt() * 0.0000001); position.setLongitude(buf.readInt() * 0.0000001); - position.setAltitude((double) buf.readUnsignedShort()); + position.setAltitude( buf.readUnsignedShort()); buf.readUnsignedShort(); // satellites in fix buf.readUnsignedShort(); // satellites in track buf.readUnsignedShort(); // GPS antenna state position.setSpeed(buf.readUnsignedShort() * 0.194384); - position.setCourse((double) buf.readUnsignedShort()); + position.setCourse(buf.readUnsignedShort()); buf.readUnsignedInt(); // distance buf.readUnsignedInt(); // delta distance @@ -134,13 +134,13 @@ public class NavigilProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(buf.readInt() * 0.0000001); position.setLongitude(buf.readInt() * 0.0000001); - position.setAltitude((double) buf.readUnsignedShort()); + position.setAltitude(buf.readUnsignedShort()); buf.readUnsignedByte(); // satellites in fix buf.readUnsignedByte(); // satellites in track position.setSpeed(buf.readUnsignedShort() * 0.194384); - position.setCourse((double) buf.readUnsignedShort()); + position.setCourse(buf.readUnsignedShort()); buf.readUnsignedInt(); // distance buf.readUnsignedShort(); // maximum speed @@ -224,7 +224,7 @@ public class NavigilProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(buf.readInt() * 0.0000001); position.setLongitude(buf.readInt() * 0.0000001); - position.setAltitude((double) buf.readUnsignedShort()); + position.setAltitude(buf.readUnsignedShort()); buf.readUnsignedByte(); // satellites in fix buf.readUnsignedByte(); // satellites in track |