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:
f896760
)
Pull in a bit more data for filtering the start of the boost
author
Keith Packard
<keithp@keithp.com>
Sun, 7 Feb 2010 08:25:22 +0000
(
00:25
-0800)
committer
Keith Packard
<keithp@keithp.com>
Fri, 12 Feb 2010 05:23:35 +0000
(21:23 -0800)
ao-tools/lib/cc-process.c
patch
|
blob
|
history
diff --git
a/ao-tools/lib/cc-process.c
b/ao-tools/lib/cc-process.c
index 5c1acc6bd203384028b737596a4545d4860a72c7..c756b57028a5dd3a9a8f787867b4ec2eee53b354 100644
(file)
--- a/
ao-tools/lib/cc-process.c
+++ b/
ao-tools/lib/cc-process.c
@@
-70,7
+70,7
@@
cc_flight_cook(struct cc_flightraw *raw)
*/
for (i = 0; i < raw->state.num; i++) {
if (!start_set && raw->state.data[i].value > ao_flight_pad) {
*/
for (i = 0; i < raw->state.num; i++) {
if (!start_set && raw->state.data[i].value > ao_flight_pad) {
- flight_start = raw->state.data[i].time;
+ flight_start = raw->state.data[i].time
- 10
;
start_set = 1;
}
if (!stop_set && raw->state.data[i].value > ao_flight_main) {
start_set = 1;
}
if (!stop_set && raw->state.data[i].value > ao_flight_main) {
@@
-79,7
+79,7
@@
cc_flight_cook(struct cc_flightraw *raw)
}
}
}
}
- if (!start_set)
+ if (!start_set
|| flight_start < raw->accel.data[0].time
)
flight_start = raw->accel.data[0].time;
if (stop_set) {
for (i = 0; i < raw->accel.num - 1; i++) {
flight_start = raw->accel.data[0].time;
if (stop_set) {
for (i = 0; i < raw->accel.num - 1; i++) {
@@
-101,8
+101,8
@@
cc_flight_cook(struct cc_flightraw *raw)
accel_speed = cc_timedata_integrate(&cooked->accel, flight_start - 10, flight_stop);
accel_pos = cc_timedata_integrate(accel_speed, flight_start - 10, flight_stop);
accel_speed = cc_timedata_integrate(&cooked->accel, flight_start - 10, flight_stop);
accel_pos = cc_timedata_integrate(accel_speed, flight_start - 10, flight_stop);
-#define ACCEL_OMEGA_PASS (2 * M_PI *
5
/ 100)
-#define ACCEL_OMEGA_STOP (2 * M_PI *
8
/ 100)
+#define ACCEL_OMEGA_PASS (2 * M_PI *
20
/ 100)
+#define ACCEL_OMEGA_STOP (2 * M_PI *
30
/ 100)
#define BARO_OMEGA_PASS (2 * M_PI * .5 / 100)
#define BARO_OMEGA_STOP (2 * M_PI * 1 / 100)
#define FILTER_ERROR (1e-8)
#define BARO_OMEGA_PASS (2 * M_PI * .5 / 100)
#define BARO_OMEGA_STOP (2 * M_PI * 1 / 100)
#define FILTER_ERROR (1e-8)