AltosGraphTime.Element speed =
new AltosGraphTime.TimeSeries(String.format("Speed (%s)", AltosConvert.speed.show_units()), "Vertical Speed", green) {
public void gotTimeData(double time, AltosDataPoint d) {
- double speed;
- if (d.state() < Altos.ao_flight_drogue && d.has_accel()) {
- speed = d.accel_speed();
- } else {
- speed = d.baro_speed();
- }
+ double speed = d.speed();
if (speed != AltosRecord.MISSING)
series.add(time, AltosConvert.speed.value(speed));
}
return graphs;
}
}
-
+
+ /*
static private class AscentGraphs extends OverallGraphs {
protected AltosGraphTime myAltosGraphTime(String suffix) {
return (new AltosGraphTime("Ascent " + suffix) {
.addElement(e_coast);
}
}
-
+ */
+
+ /*
static private class DescentGraphs extends OverallGraphs {
protected AltosGraphTime myAltosGraphTime(String suffix) {
return (new AltosGraphTime("Descent " + suffix) {
// ((XYGraph)graph[8]).ymin = new Double(-50);
}
}
+ */
public AltosGraphUI(AltosRecordIterable records, String name) throws InterruptedException, IOException {
super(String.format("Altos Graph %s", name));
AltosDataPointReader reader = new AltosDataPointReader (records);
- if (reader == null)
- return;
if (reader.has_accel)
init(reader, records, 0);