From efd272c1853d41edbc1ca62af2d138f457533f3e Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 26 Jun 2018 20:12:58 -0700 Subject: gpsprof: handle missing altitude in replots. --- gpsprof | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gpsprof') diff --git a/gpsprof b/gpsprof index fb01fecb..c70270d4 100755 --- a/gpsprof +++ b/gpsprof @@ -323,6 +323,9 @@ class spaceplot(plotter): if sat.used: sats_used += 1 + if 'alt' not in self.session.data: + self.session.data['alt'] = gps.NaN + self.fixes.append((self.session.data['lat'], self.session.data['lon'], self.session.data['alt'], sats_used)) -- cgit v1.2.1