Update OsMoTracker.java

This commit is contained in:
vshcherb 2015-06-01 11:33:30 +02:00
parent 524bcf0d58
commit 6a27e9dcc1

View file

@ -97,7 +97,7 @@ public class OsMoTracker implements OsMoReactor {
cmd.append("A").append((int)loc.getAltitude());
}
if(loc.hasSpeed()) {
cmd.append("S").append(((int)loc.getSpeed()*100)/100f);
cmd.append("S").append((float)((int)(loc.getSpeed()*100))/100f);
}
if(loc.hasBearing()) {
cmd.append("C").append((int)loc.getBearing());