Skip to content

Commit

Permalink
Convert meitrack speed to knots (fix traccar#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Jan 15, 2014
1 parent acfa8dc commit 0f0bcf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/traccar/protocol/MeitrackProtocolDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected Object decode(
extendedInfo.set("gsm", parser.group(index++));

// Speed
position.setSpeed(Double.valueOf(parser.group(index++)));
position.setSpeed(Double.valueOf(parser.group(index++)) * 0.539957);

// Course
position.setCourse(Double.valueOf(parser.group(index++)));
Expand Down

0 comments on commit 0f0bcf8

Please sign in to comment.