diff options
author | Keith Packard <keithp@keithp.com> | 2017-06-20 11:18:41 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-06-20 11:18:41 -0700 |
commit | 0da4e201041a4420f273c2e0cda77eea78099518 (patch) | |
tree | 617f28dbd38b7ade20edb7eb1676ee2b3fc917b0 /altoslib/AltosCSV.java | |
parent | a61217f0a6d0ef48b6471f632c4600255867e831 (diff) |
altoslib: Make cal_data private in AltosDataListener
This way we can create it as needed.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosCSV.java')
-rw-r--r-- | altoslib/AltosCSV.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/altoslib/AltosCSV.java b/altoslib/AltosCSV.java index aed18728..f55b4785 100644 --- a/altoslib/AltosCSV.java +++ b/altoslib/AltosCSV.java @@ -133,8 +133,8 @@ public class AltosCSV implements AltosWriter { void write_general() { double time = time(); out.printf("%s, %d, %d, %s, %8.2f, %8.2f, %4d, %3d", - ALTOS_CSV_VERSION, series.cal_data.serial, - series.cal_data.flight, series.cal_data.callsign, + ALTOS_CSV_VERSION, series.cal_data().serial, + series.cal_data().flight, series.cal_data().callsign, time, time, rssi(), status() & 0x7f); } @@ -220,8 +220,8 @@ public class AltosCSV implements AltosWriter { AltosGreatCircle from_pad; - if (series.cal_data.gps_pad != null && gps != null) - from_pad = new AltosGreatCircle(series.cal_data.gps_pad, gps); + if (series.cal_data().gps_pad != null && gps != null) + from_pad = new AltosGreatCircle(series.cal_data().gps_pad, gps); else from_pad = new AltosGreatCircle(); |