Changeset 11161 in josm for trunk/src


Ignore:
Timestamp:
2016-10-25T10:36:45+02:00 (8 years ago)
Author:
stoecker
Message:

properly handling of HDOP - not restricting it to the range of 0 to 1

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r11098 r11161  
    102102
    103103    private static final String[] OBSOLETE_PREF_KEYS = {
     104      "hdop.factor" /* remove entry after April 2017 */
    104105    };
    105106
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r10824 r11161  
    6262    private double minTrackDurationForTimeColoring;
    6363
    64     private int hdopfactor;
     64    /** maximum value of displayed HDOP, minimum is 0 */
     65    private int hdoprange;
    6566
    6667    private static final double PHI = Math.toRadians(15);
     
    214215        colorTracksTune = Main.pref.getInteger("draw.rawgps.colorTracksTune", spec, 45);
    215216        colorModeDynamic = Main.pref.getBoolean("draw.rawgps.colors.dynamic", spec, false);
    216         hdopfactor = Main.pref.getInteger("hdop.factor", 25);
     217        /* good HDOP's are between 1 and 3, very bad HDOP's go into 3 digit values */
     218        hdoprange = Main.pref.getInteger("hdop.range", 7);
    217219        minTrackDurationForTimeColoring = Main.pref.getInteger("draw.rawgps.date-coloring-min-dt", 60);
    218220        largePointAlpha = Main.pref.getInteger("draw.rawgps.large.alpha", -1) & 0xFF;
     
    311313        } else { // color mode not dynamic
    312314            velocityScale.setRange(0, colorTracksTune);
    313             hdopScale.setRange(0, 1.0/hdopfactor);
     315            hdopScale.setRange(0, hdoprange);
    314316        }
    315317        double now = System.currentTimeMillis()/1000.0;
Note: See TracChangeset for help on using the changeset viewer.