diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-21 15:47:37 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-21 15:47:37 +0200 |
commit | 8e7722f8948d3f8f21a5a661e9cdcc6097472fd9 (patch) | |
tree | 7a1e356d17e8c2f6ca604f36b7a041026b505914 /src/modules/bottle_drop/bottle_drop.cpp | |
parent | 7c7dce3b440a7b6deb8f0f9340c4ba6b21daa800 (diff) | |
download | px4-firmware-8e7722f8948d3f8f21a5a661e9cdcc6097472fd9.tar.gz px4-firmware-8e7722f8948d3f8f21a5a661e9cdcc6097472fd9.tar.bz2 px4-firmware-8e7722f8948d3f8f21a5a661e9cdcc6097472fd9.zip |
Open bay at a minimum distance of 5 meters, irrelevant of the velocity
Diffstat (limited to 'src/modules/bottle_drop/bottle_drop.cpp')
-rw-r--r-- | src/modules/bottle_drop/bottle_drop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bottle_drop/bottle_drop.cpp b/src/modules/bottle_drop/bottle_drop.cpp index bc182b501..5d2343cfb 100644 --- a/src/modules/bottle_drop/bottle_drop.cpp +++ b/src/modules/bottle_drop/bottle_drop.cpp @@ -637,7 +637,7 @@ BottleDrop::task_main() } // We're close enough - open the bay - distance_open_door = math::max(3.0f, 3.0f * fabsf(t_door * groundspeed_body)); + distance_open_door = math::max(5.0f, 3.0f * fabsf(t_door * groundspeed_body)); if (counter % 10 == 0) warnx("dist real: %.2f, distance_open_door: %.2f, angle to wind: %.2f", |