diff options
| author | Bdale Garbee <bdale@gag.com> | 2016-09-05 21:01:35 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2016-09-05 21:01:35 -0600 | 
| commit | 6af87e5cf98e644d2455faf6526a9f11880686f5 (patch) | |
| tree | d23017ea0a0fd693cbef18979c35cfca7ce1db69 /altosui/AltosUI.java | |
| parent | 6ec9f2a78aa8c99d48006b14c936c59edd08addf (diff) | |
| parent | 168c39a37415b1bdc09aa00bbaaafb5d879ce8bd (diff) | |
Merge branch 'branch-1.6' into debian
Diffstat (limited to 'altosui/AltosUI.java')
| -rw-r--r-- | altosui/AltosUI.java | 21 | 
1 files changed, 15 insertions, 6 deletions
| diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index fa259906..019bbb9e 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -3,7 +3,8 @@   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version.   *   * This program is distributed in the hope that it will be useful, but   * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -545,14 +546,22 @@ public class AltosUI extends AltosUIFrame {  			AltosStateIterable eef = record_iterable(file);  			for (AltosState state : eef) { -				System.out.printf ("tick %d state %d height %g\n", -						   state.tick, state.state(), state.height()); -				if ((state.set & AltosState.set_gps) != 0) -					System.out.printf ("time %g lat %g lon %g alt %g\n", -							   state.time_since_boost(), +				if ((state.set & AltosState.set_gps) != 0) { +					System.out.printf ("time %d %d-%d-%d %d:%d:%d lat %g lon %g alt %g\n", +							   state.gps.seconds(), +							   state.gps.year, +							   state.gps.month, +							   state.gps.day, +							   state.gps.hour, +							   state.gps.minute, +							   state.gps.second,  							   state.gps.lat,  							   state.gps.lon,  							   state.gps.alt); +				} else { +					System.out.printf ("tick %d state %d height %g\n", +							   state.tick, state.state(), state.height()); +				}  			}  		} catch (Exception e) { | 
