summaryrefslogtreecommitdiff
path: root/ao-tools/lib/cc.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-06 20:26:17 -0700
committerKeith Packard <keithp@keithp.com>2009-09-06 20:26:17 -0700
commit932f1539b38567e565fd484171c13539b1467308 (patch)
tree485485df3cef45614c861da39b987bedb0aec190 /ao-tools/lib/cc.h
parent9177f5f4e9d832558ddd9ab227c4511f6201e7e5 (diff)
Color plots, integrate only flight portion of data.
Telemetry files have piles of pad data which shouldn't be integrated into the velocity data as it tends to generate huge values from the noise of the sensor. Also make the data lines colored to keep them visually distinct from the rest of the plot image. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/lib/cc.h')
-rw-r--r--ao-tools/lib/cc.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ao-tools/lib/cc.h b/ao-tools/lib/cc.h
index 4e9aadc4..01226958 100644
--- a/ao-tools/lib/cc.h
+++ b/ao-tools/lib/cc.h
@@ -142,6 +142,9 @@ void
cc_flightraw_free(struct cc_flightraw *raw);
struct cc_flightcooked {
+ double flight_start;
+ double flight_stop;
+
struct cc_perioddata accel_accel;
struct cc_perioddata accel_speed;
struct cc_perioddata accel_pos;
@@ -151,6 +154,10 @@ struct cc_flightcooked {
struct cc_perioddata gps_lat;
struct cc_perioddata gps_lon;
struct cc_perioddata gps_alt;
+
+ /* unfiltered, but converted */
+ struct cc_timedata pres;
+ struct cc_timedata accel;
struct cc_timedata state;
};
@@ -262,6 +269,9 @@ cc_great_circle (double start_lat, double start_lon,
double end_lat, double end_lon,
double *dist, double *bearing);
+void
+cc_timedata_limits(struct cc_timedata *d, double min_time, double max_time, int *start, int *stop);
+
int
cc_timedata_min(struct cc_timedata *d, double min_time, double max_time);
@@ -314,7 +324,7 @@ struct cc_timedata *
cc_timedata_convert(struct cc_timedata *d, double (*f)(double v, double a), double a);
struct cc_timedata *
-cc_timedata_integrate(struct cc_timedata *d);
+cc_timedata_integrate(struct cc_timedata *d, double min_time, double max_time);
struct cc_perioddata *
cc_perioddata_differentiate(struct cc_perioddata *i);