diff options
author | Simon Wilks <sjwilks@gmail.com> | 2014-08-17 10:19:48 +0200 |
---|---|---|
committer | Simon Wilks <sjwilks@gmail.com> | 2014-08-17 10:19:48 +0200 |
commit | 789f949e746cdd79e1214830a4ef822ef5634bbe (patch) | |
tree | 0a2a4b861c7414cc98a25b617c8c3c1566b1b8c9 /src | |
parent | 8a066a85faa7dd15265f705eba78a9dfe53f9f1d (diff) | |
download | px4-firmware-789f949e746cdd79e1214830a4ef822ef5634bbe.tar.gz px4-firmware-789f949e746cdd79e1214830a4ef822ef5634bbe.tar.bz2 px4-firmware-789f949e746cdd79e1214830a4ef822ef5634bbe.zip |
Added debugging and small locking fix.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/bottle_drop/bottle_drop.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/bottle_drop/bottle_drop.cpp b/src/modules/bottle_drop/bottle_drop.cpp index ddc41372e..14b9a8379 100644 --- a/src/modules/bottle_drop/bottle_drop.cpp +++ b/src/modules/bottle_drop/bottle_drop.cpp @@ -728,6 +728,7 @@ BottleDrop::handle_command(struct vehicle_command_s *cmd) mavlink_log_info(_mavlink_fd, "#audio: open doors"); } else { + lock_release(); close_bay(); mavlink_log_info(_mavlink_fd, "#audio: close doors"); } @@ -760,7 +761,7 @@ BottleDrop::handle_command(struct vehicle_command_s *cmd) _target_position.alt = cmd->param7; _target_position.initialized; _drop_state = DROP_STATE_TARGET_VALID; - warnx("got target: %8.4f, %8.4f, %8.4f", (double)_target_position.lat, + mavlink_log_info(_mavlink_fd, "got target: %8.4f, %8.4f, %8.4f", (double)_target_position.lat, (double)_target_position.lon, (double)_target_position.alt); map_projection_init(&ref, _target_position.lat, _target_position.lon); answer_command(cmd, VEHICLE_CMD_RESULT_ACCEPTED); |