diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-21 15:26:04 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-21 15:26:04 +0200 |
commit | 0bdf28f9ba6f0875bfb70ff961fc61e73b813edc (patch) | |
tree | 1fe57aef3d7af13f2ba943ba9f9c8f74970dd28b /src/modules/bottle_drop | |
parent | 2a99ff39dcdb78d97fd645f2c47bf6d36798a1dc (diff) | |
download | px4-firmware-0bdf28f9ba6f0875bfb70ff961fc61e73b813edc.tar.gz px4-firmware-0bdf28f9ba6f0875bfb70ff961fc61e73b813edc.tar.bz2 px4-firmware-0bdf28f9ba6f0875bfb70ff961fc61e73b813edc.zip |
audio feedback on distance
Diffstat (limited to 'src/modules/bottle_drop')
-rw-r--r-- | src/modules/bottle_drop/bottle_drop.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/bottle_drop/bottle_drop.cpp b/src/modules/bottle_drop/bottle_drop.cpp index 35b2266e4..a899cbe60 100644 --- a/src/modules/bottle_drop/bottle_drop.cpp +++ b/src/modules/bottle_drop/bottle_drop.cpp @@ -636,6 +636,10 @@ BottleDrop::task_main() onboard_mission_pub = orb_advertise(ORB_ID(onboard_mission), &onboard_mission); } + if (counter % 90 == 0) { + mavlink_log_info(_mavlink_fd, "#audio: drop distance %.2f", (double)distance_real); + } + // We're close enough - open the bay distance_open_door = math::max(3.0f, fabsf(t_door * groundspeed_body)); |