diff options
| author | Keith Packard <keithp@keithp.com> | 2013-09-02 23:10:23 -0600 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-09-02 23:11:52 -0600 | 
| commit | 528e2e41112cad8a81bccbb89c3bd202b818a506 (patch) | |
| tree | 2c2076a5d1972681ba3300e9a44636b526efaa82 /altosui/AltosInfoTable.java | |
| parent | 224a1e01bacb7db0076129906ed58e1c785e1b14 (diff) | |
altoslib: More AltosState hacking
EasyMini graphs are looking good now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosInfoTable.java')
| -rw-r--r-- | altosui/AltosInfoTable.java | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/altosui/AltosInfoTable.java b/altosui/AltosInfoTable.java index 8906920b..cf4642bc 100644 --- a/altosui/AltosInfoTable.java +++ b/altosui/AltosInfoTable.java @@ -107,22 +107,22 @@ public class AltosInfoTable extends JTable {  	public void show(AltosState state, AltosListenerState listener_state) {  		info_reset();  		if (state != null) { -			if (state.altitude != AltosRecord.MISSING) -				info_add_row(0, "Altitude", "%6.0f    m", state.altitude); -			if (state.ground_altitude != AltosRecord.MISSING) -				info_add_row(0, "Pad altitude", "%6.0f    m", state.ground_altitude); -			if (state.height != AltosRecord.MISSING) -				info_add_row(0, "Height", "%6.0f    m", state.height); -			if (state.height != AltosRecord.MISSING) -				info_add_row(0, "Max height", "%6.0f    m", state.max_height); -			if (state.acceleration != AltosRecord.MISSING) -				info_add_row(0, "Acceleration", "%8.1f  m/s²", state.acceleration); -			if (state.acceleration != AltosRecord.MISSING) -				info_add_row(0, "Max acceleration", "%8.1f  m/s²", state.max_acceleration); +			if (state.altitude() != AltosRecord.MISSING) +				info_add_row(0, "Altitude", "%6.0f    m", state.altitude()); +			if (state.ground_altitude() != AltosRecord.MISSING) +				info_add_row(0, "Pad altitude", "%6.0f    m", state.ground_altitude()); +			if (state.height() != AltosRecord.MISSING) +				info_add_row(0, "Height", "%6.0f    m", state.height()); +			if (state.max_height() != AltosRecord.MISSING) +				info_add_row(0, "Max height", "%6.0f    m", state.max_height()); +			if (state.acceleration() != AltosRecord.MISSING) +				info_add_row(0, "Acceleration", "%8.1f  m/s²", state.acceleration()); +			if (state.max_acceleration() != AltosRecord.MISSING) +				info_add_row(0, "Max acceleration", "%8.1f  m/s²", state.max_acceleration());  			if (state.speed() != AltosRecord.MISSING)  				info_add_row(0, "Speed", "%8.1f  m/s", state.speed()); -			if (state.speed() != AltosRecord.MISSING) -				info_add_row(0, "Max Speed", "%8.1f  m/s", state.max_speed); +			if (state.max_speed() != AltosRecord.MISSING) +				info_add_row(0, "Max Speed", "%8.1f  m/s", state.max_speed());  			if (state.temperature != AltosRecord.MISSING)  				info_add_row(0, "Temperature", "%9.2f °C", state.temperature);  			if (state.battery_voltage != AltosRecord.MISSING) | 
