Changeset 36250 in osm for applications


Ignore:
Timestamp:
2024-04-18T11:08:44+02:00 (9 months ago)
Author:
stoecker
Message:

fix speed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/src/livegps/LiveGpsAcquirerNMEA.java

    r36120 r36250  
    166166                                    course = Float.valueOf(w.getString("course"));
    167167                                if (w.getString("speed") != null)
    168                                     speed = Float.valueOf(w.getString("speed"));
     168                                    speed = Float.valueOf(w.getString("speed"))/3.6;
    169169                                Logging.trace("New LiveGPS entry: " + w);
    170170                                LiveGpsData gpsData = new LiveGpsData(w.lat(), w.lon(), course, speed, 0.0f, 0.0f);
Note: See TracChangeset for help on using the changeset viewer.