diff options
| author | Keith Packard <keithp@keithp.com> | 2015-02-07 20:36:10 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-02-07 20:36:10 -0800 | 
| commit | c72d83ccd207b5300a90f2e84de6c5c96642478c (patch) | |
| tree | abf7d2b195033d01ae3f4ffd116d559033bd70eb /altosuilib/AltosGraph.java | |
| parent | 426bacbbd6e0573b143e7c48d71db977e53181fc (diff) | |
altosuilib: Don't offer to graph some GPS details that TM doesn't log
When using a TM eeprom file, various minor GPS details are logged
(course, ground speed, climb rate, etc). Make sure these aren't
offered up for graphing.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosGraph.java')
| -rw-r--r-- | altosuilib/AltosGraph.java | 64 | 
1 files changed, 34 insertions, 30 deletions
| diff --git a/altosuilib/AltosGraph.java b/altosuilib/AltosGraph.java index 854c869c..e2db9e12 100644 --- a/altosuilib/AltosGraph.java +++ b/altosuilib/AltosGraph.java @@ -337,42 +337,46 @@ public class AltosGraph extends AltosUIGraph {  					  false,  					  nsat_axis);  			} -			addSeries("GPS Course", -				  AltosGraphDataPoint.data_gps_course, -				  orient_units, -				  gps_course_color, -				  false, -				  course_axis); -			addSeries("GPS Ground Speed", -				  AltosGraphDataPoint.data_gps_ground_speed, -				  AltosConvert.speed, -				  gps_ground_speed_color, -				  enable_gps, -				  speed_axis); -			addSeries("GPS Climb Rate", -				  AltosGraphDataPoint.data_gps_climb_rate, -				  AltosConvert.speed, -				  gps_climb_rate_color, -				  enable_gps, -				  speed_axis); +			if (stats.has_gps_detail) { +				addSeries("GPS Course", +					  AltosGraphDataPoint.data_gps_course, +					  orient_units, +					  gps_course_color, +					  false, +					  course_axis); +				addSeries("GPS Ground Speed", +					  AltosGraphDataPoint.data_gps_ground_speed, +					  AltosConvert.speed, +					  gps_ground_speed_color, +					  enable_gps, +					  speed_axis); +				addSeries("GPS Climb Rate", +					  AltosGraphDataPoint.data_gps_climb_rate, +					  AltosConvert.speed, +					  gps_climb_rate_color, +					  enable_gps, +					  speed_axis); +			}  			addSeries("GPS Position DOP",  				  AltosGraphDataPoint.data_gps_pdop,  				  dop_units,  				  gps_pdop_color,  				  false,  				  dop_axis); -			addSeries("GPS Horizontal DOP", -				  AltosGraphDataPoint.data_gps_hdop, -				  dop_units, -				  gps_hdop_color, -				  false, -				  dop_axis); -			addSeries("GPS Vertical DOP", -				  AltosGraphDataPoint.data_gps_vdop, -				  dop_units, -				  gps_vdop_color, -				  false, -				  dop_axis); +			if (stats.has_gps_detail) { +				addSeries("GPS Horizontal DOP", +					  AltosGraphDataPoint.data_gps_hdop, +					  dop_units, +					  gps_hdop_color, +					  false, +					  dop_axis); +				addSeries("GPS Vertical DOP", +					  AltosGraphDataPoint.data_gps_vdop, +					  dop_units, +					  gps_vdop_color, +					  false, +					  dop_axis); +			}  		}  		if (stats.has_rssi)  			addSeries("Received Signal Strength", | 
