diff options
author | Julian Oes <julian@oes.ch> | 2013-06-16 09:54:57 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-06-16 09:54:57 +0200 |
commit | 263b60c200b80af68fea7a491cb17e9db4f65135 (patch) | |
tree | 955c1da0f7c406b4763fc15be5833de82d228c7a /src/examples/flow_position_estimator | |
parent | 3230f2244685252a362f3933707407022d8ea759 (diff) | |
download | px4-firmware-263b60c200b80af68fea7a491cb17e9db4f65135.tar.gz px4-firmware-263b60c200b80af68fea7a491cb17e9db4f65135.tar.bz2 px4-firmware-263b60c200b80af68fea7a491cb17e9db4f65135.zip |
Hack to make flow controll to compile
Diffstat (limited to 'src/examples/flow_position_estimator')
-rw-r--r-- | src/examples/flow_position_estimator/flow_position_estimator_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/examples/flow_position_estimator/flow_position_estimator_main.c b/src/examples/flow_position_estimator/flow_position_estimator_main.c index c0b16d2e7..2389c693d 100644 --- a/src/examples/flow_position_estimator/flow_position_estimator_main.c +++ b/src/examples/flow_position_estimator/flow_position_estimator_main.c @@ -218,6 +218,8 @@ int flow_position_estimator_thread_main(int argc, char *argv[]) while (!thread_should_exit) { +// XXX fix this +#if 0 if (sensors_ready) { /*This runs at the rate of the sensors */ @@ -273,6 +275,7 @@ int flow_position_estimator_thread_main(int argc, char *argv[]) * -> accept sonar measurements after reaching calibration distance (values between 0.3m and 1.0m for some time) * -> minimum sonar value 0.3m */ + if (!vehicle_liftoff) { if (vstatus.flag_system_armed && att_sp.thrust > params.minimum_liftoff_thrust && sonar_new > 0.3f && sonar_new < 1.0f) @@ -437,6 +440,7 @@ int flow_position_estimator_thread_main(int argc, char *argv[]) } counter++; + #endif } printf("[flow position estimator] exiting.\n"); |