Changeset 33854 in osm for applications/editors/josm/plugins/globalsat/src/org/kaintoch
- Timestamp:
- 2017-11-21T01:50:06+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100
- Files:
-
- 3 edited
-
Dg100Config.java (modified) (3 diffs)
-
FileInfoRec.java (modified) (1 diff)
-
GpsRec.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/Dg100Config.java
r30738 r33854 12 12 import java.util.Properties; 13 13 14 import org.openstreetmap.josm. Main;14 import org.openstreetmap.josm.tools.Logging; 15 15 16 16 /** … … 466 466 props.store(os, "dg100 config"); 467 467 } catch (Exception ex) { 468 Main.error(ex);468 Logging.error(ex); 469 469 throw ex; 470 470 } … … 477 477 props.load(is); 478 478 } catch (Exception ex) { 479 Main.error(ex);;479 Logging.error(ex);; 480 480 throw ex; 481 481 } -
applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/FileInfoRec.java
r13497 r33854 24 24 } 25 25 26 @Override 26 27 public String toString() 27 28 { -
applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/GpsRec.java
r29854 r33854 68 68 } 69 69 70 /** 71 * @see java.lang.Object#equals(java.lang.Object) 72 */ 70 @Override 73 71 public boolean equals(Object arg0) 74 72 { … … 142 140 } 143 141 142 @Override 144 143 public String toString() 145 144 { … … 230 229 int scale = 1000000; 231 230 double deg = 9999.9999; 232 double degScaled = (double)(gsLatOrLon / scale);233 double minScaled = ( (double)(gsLatOrLon - degScaled * scale)) / 600000.0;231 double degScaled = gsLatOrLon / scale; 232 double minScaled = (gsLatOrLon - degScaled * scale) / 600000.0; 234 233 deg = degScaled + minScaled; 235 234 return deg; … … 432 431 public double getAltitude() 433 432 { 434 return dg100Altitude / (double)10000.0;433 return dg100Altitude / 10000.0; 435 434 } 436 435 437 436 public double getSpeed() 438 437 { 439 return dg100Speed / (double)360.0;438 return dg100Speed / 360.0; 440 439 } 441 440
Note:
See TracChangeset
for help on using the changeset viewer.
