projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
telegps: Add first version of telegps
[fw/altos]
/
altosui
/
AltosInfoTable.java
diff --git
a/altosui/AltosInfoTable.java
b/altosui/AltosInfoTable.java
index cf0e4c56faacecd4a86c511c7a70933b99437d68..125fa94c57cd3f7fb35b2ea590fe9f6d66f41def 100644
(file)
--- a/
altosui/AltosInfoTable.java
+++ b/
altosui/AltosInfoTable.java
@@
-20,7
+20,7
@@
package altosui;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
-import org.altusmetrum.altoslib_
3
.*;
+import org.altusmetrum.altoslib_
4
.*;
public class AltosInfoTable extends JTable {
private AltosFlightInfoTableModel model;
public class AltosInfoTable extends JTable {
private AltosFlightInfoTableModel model;
@@
-46,9
+46,9
@@
public class AltosInfoTable extends JTable {
TableColumn column = getColumnModel().getColumn(i);
if ((i & 1) == 0)
TableColumn column = getColumnModel().getColumn(i);
if ((i & 1) == 0)
- column.setPreferredWidth(text_width(" Satellites Visible
"));
+ column.setPreferredWidth(text_width(" Satellites Visible"));
else
else
- column.setPreferredWidth(text_width(" 179°59.99999' "));
+ column.setPreferredWidth(text_width("
W
179°59.99999' "));
}
}
}
}
@@
-125,6
+125,10
@@
public class AltosInfoTable extends JTable {
info_add_row(0, "Speed", "%8.1f m/s", state.speed());
if (state.max_speed() != AltosLib.MISSING)
info_add_row(0, "Max Speed", "%8.1f m/s", state.max_speed());
info_add_row(0, "Speed", "%8.1f m/s", state.speed());
if (state.max_speed() != AltosLib.MISSING)
info_add_row(0, "Max Speed", "%8.1f m/s", state.max_speed());
+ if (state.orient() != AltosLib.MISSING)
+ info_add_row(0, "Tilt", "%4.0f °", state.orient());
+ if (state.max_orient() != AltosLib.MISSING)
+ info_add_row(0, "Max Tilt", "%4.0f °", state.max_orient());
if (state.temperature != AltosLib.MISSING)
info_add_row(0, "Temperature", "%9.2f °C", state.temperature);
if (state.battery_voltage != AltosLib.MISSING)
if (state.temperature != AltosLib.MISSING)
info_add_row(0, "Temperature", "%9.2f °C", state.temperature);
if (state.battery_voltage != AltosLib.MISSING)
@@
-201,7
+205,7
@@
public class AltosInfoTable extends JTable {
info_add_deg(1, "Pad longitude", state.pad_lon, 'E', 'W');
info_add_row(1, "Pad GPS alt", "%6.0f m", state.pad_alt);
}
info_add_deg(1, "Pad longitude", state.pad_lon, 'E', 'W');
info_add_row(1, "Pad GPS alt", "%6.0f m", state.pad_alt);
}
- if (state.gps.year != AltosLib.MISSING)
+ if (state.gps.year != AltosLib.MISSING)
info_add_row(1, "GPS date", "%04d-%02d-%02d",
state.gps.year,
state.gps.month,
info_add_row(1, "GPS date", "%04d-%02d-%02d",
state.gps.year,
state.gps.month,