diff options
| author | Keith Packard <keithp@keithp.com> | 2012-10-21 16:13:14 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-10-21 16:13:14 -0700 | 
| commit | 7894c27b2b2c3c46a7c107c8acd5977830f006cf (patch) | |
| tree | f05c9d5c6bc06c1764118d1f5596a95f0016178d /altosui/AltosInfoTable.java | |
| parent | dec2e455935a71dec13b84bb886252b7f4a1a641 (diff) | |
altoslib: Move computed state from AltosRecord to AltosState
Make AltosRecord simply track the raw data and have AltosState hold
all computed values, including cross-packet averages and computed speeds.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosInfoTable.java')
| -rw-r--r-- | altosui/AltosInfoTable.java | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/altosui/AltosInfoTable.java b/altosui/AltosInfoTable.java index 86e02ab1..11d1b0c1 100644 --- a/altosui/AltosInfoTable.java +++ b/altosui/AltosInfoTable.java @@ -114,8 +114,8 @@ public class AltosInfoTable extends JTable {  		info_add_row(0, "Max height", "%6.0f    m", state.max_height);  		info_add_row(0, "Acceleration", "%8.1f  m/s²", state.acceleration);  		info_add_row(0, "Max acceleration", "%8.1f  m/s²", state.max_acceleration); -		info_add_row(0, "Speed", "%8.1f  m/s", state.ascent ? state.speed : state.baro_speed); -		info_add_row(0, "Max Speed", "%8.1f  m/s", state.max_speed); +		info_add_row(0, "Speed", "%8.1f  m/s", state.speed()); +		info_add_row(0, "Max Speed", "%8.1f  m/s", state.max_accel_speed);  		info_add_row(0, "Temperature", "%9.2f °C", state.temperature);  		info_add_row(0, "Battery", "%9.2f V", state.battery);  		if (state.drogue_sense != AltosRecord.MISSING)  | 
