Changeset 34120 in osm for applications/editors/josm
- Timestamp:
- 2018-03-25T20:45:59+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/globalsat/src/org
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/ByteHelper.java
r13497 r34120 13 13 14 14 /** 15 * 16 * @param src 17 * @param startS 18 * @param len 19 * @param dest 20 * @param startD 21 * @return 15 * Copy one byte array into another 16 * @param src the array to copy data from 17 * @param startS start index in source array 18 * @param len number of entries to copy 19 * @param dest the array to copy into 20 * @param startD start index in target array 21 * @return the index pointer behind the last target array copied 22 22 */ 23 23 public static int copyByteArr2ByteArr(byte src[], int startS, int len, byte dest[], int startD) … … 33 33 34 34 /** 35 * 36 * @param byt 37 * @return 35 * Convert byte to unsigned integer 36 * @param byt byte value to convert 37 * @return unsigned integer 38 38 */ 39 39 public static int byte2IntUnsigned(byte byt) … … 43 43 44 44 /** 45 * 46 * @param nibble 45 * Convert 4 bit into hexadecimal character 46 * @param nibble value to convert (only last 4 bit used) 47 * @return character in range of 0 to F 47 48 */ 48 49 private static char nibble2Char(int nibble) … … 73 74 74 75 /** 75 * 76 * @return 76 * Convert byte to unsigned hexadecimal string 77 * @param byt byte value to convert 78 * @return 2 character string representing the last 8 bit 77 79 */ 78 80 public static String byte2StringUnsigned(byte byt) … … 87 89 88 90 /** 89 * 90 * @param byt 91 * Convert byte array to unsigned hexadecimal string 92 * @param byt array of bytes to convert 93 * @return hexadecimal string representing the byte array 91 94 */ 92 95 public static String byteArray2String(byte byt[]) … … 96 99 97 100 /** 98 * 99 * @param byt 100 * @param cnt 101 * Convert byte array to unsigned hexadecimal string 102 * @param byt array of bytes to convert 103 * @param cnt number of entries to convert 104 * @return hexadecimal string representing the byte array 101 105 */ 102 106 public static String byteArray2String(byte byt[], int cnt) -
applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/GpsRec.java
r33854 r34120 114 114 /** 115 115 * Shows wether this is a valid GPS record. 116 * @return true if GPS record is valid; otherwise false.116 * @return <code>true</code> if GPS record is valid; otherwise <code>false</code>. 117 117 */ 118 118 public boolean isValid() … … 157 157 158 158 /** 159 * @return Returns the dg100Latitude. 159 * Get latitude value 160 * @return Returns the dg100Latitude value. 160 161 */ 161 162 public int getDg100Latitude() … … 255 256 /** 256 257 * Gets dg100Date and time as a String in given format. 257 * @param dateTimeFormat 258 * @return 258 * @param dateTimeFormat format string for date and time 259 * @return formated date and time 259 260 */ 260 261 private String getStringDateTime(String dateTimeFormat) … … 271 272 272 273 /** 274 * Get the altitude value 273 275 * @return Returns the dg100Altitude. 274 276 */ … … 279 281 280 282 /** 281 * @param dg100Altitude The dg100Altitude to set. 283 * Set the altitude value 284 * @param altitude The dg100Altitude to set. 282 285 */ 283 286 private void setDg100Altitude(int altitude) … … 287 290 288 291 /** 292 * Get date information 289 293 * @return Returns the dg100Date. 290 294 */ … … 295 299 296 300 /** 297 * @param dg100Date The dg100Date to set. 301 * Set date information 302 * @param date The dg100Date to set. 298 303 */ 299 304 private void setDg100Date(int date) … … 304 309 305 310 /** 306 * @return311 * calculate date and time from individual components 307 312 */ 308 313 private void calcDateTime() … … 319 324 320 325 /** 326 * Get longitude value 321 327 * @return Returns the dg100Longitude. 322 328 */ … … 327 333 328 334 /** 329 * @param dg100Longitude The dg100Longitude to set. 335 * Set longitude value 336 * @param longitude The dg100Longitude to set. 330 337 */ 331 338 private void setDg100Longitude(int longitude) … … 335 342 336 343 /** 344 * Get speed value 337 345 * @return Returns the dg100Speed. 338 346 */ … … 343 351 344 352 /** 345 * @param dg100Speed The dg100Speed to set. 353 * Set speed value 354 * @param speed The dg100Speed to set. 346 355 */ 347 356 private void setDg100Speed(int speed) … … 351 360 352 361 /** 362 * Get timezone value 353 363 * @return Returns the dg100TimeZ. 354 364 */ … … 359 369 360 370 /** 361 * @param dg100TimeZ The dg100TimeZ to set. 371 * Set timezone value 372 * @param timeZ The dg100TimeZ to set. 362 373 */ 363 374 private void setDg100TimeZ(int timeZ) … … 368 379 369 380 /** 370 * @param dg100Latitude The dg100Latitude to set. 381 * Set latitude value 382 * @param latitude The dg100Latitude to set. 371 383 */ 372 384 private void setDg100Latitude(int latitude) -
applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatDg100.java
r33854 r34120 133 133 134 134 /** 135 * Export DG-100's complete data to a GPX file.136 * @param p ort DG-100 is connected to port.135 * Import DG-100's complete data 136 * @param progressMonitor user progress interface 137 137 */ 138 138 public GpxData readData(ProgressMonitor progressMonitor) throws ConnectionException {
Note:
See TracChangeset
for help on using the changeset viewer.