projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2f0ff96
)
altosuilib: GPS errors are recorded in floating point, not integers
author
Keith Packard
<keithp@keithp.com>
Fri, 7 Nov 2014 00:02:07 +0000
(16:02 -0800)
committer
Keith Packard
<keithp@keithp.com>
Fri, 7 Nov 2014 00:02:07 +0000
(16:02 -0800)
Fix the format used to present them in the info table.
Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosInfoTable.java
patch
|
blob
|
history
diff --git
a/altosuilib/AltosInfoTable.java
b/altosuilib/AltosInfoTable.java
index 625fe76f6ff33f09416490b057f3fc99a97e4be6..91cc43bb29541bea306232b90dd10ab409996bb3 100644
(file)
--- a/
altosuilib/AltosInfoTable.java
+++ b/
altosuilib/AltosInfoTable.java
@@
-207,7
+207,7
@@
public class AltosInfoTable extends JTable implements AltosFlightDisplay, Hierar
state.gps.climb_rate);
if (state.gps.h_error != AltosLib.MISSING && state.gps.v_error != AltosLib.MISSING)
- info_add_row(1, "GPS error", "%6
d m(h)%3d
m(v)",
+ info_add_row(1, "GPS error", "%6
.0f m(h)%6.0f
m(v)",
state.gps.h_error, state.gps.v_error);
if (state.gps.pdop != AltosLib.MISSING &&
state.gps.hdop != AltosLib.MISSING &&