diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-22 14:30:34 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-22 14:30:34 +0200 |
commit | 0f7c3926143a917b3e444f0f2c6c2cb673f073e4 (patch) | |
tree | 65e33b625371e2ac3543d3d5e099e647a2060982 | |
parent | 1089c9516af42e941931b027d7b359e566db07de (diff) | |
download | px4-firmware-0f7c3926143a917b3e444f0f2c6c2cb673f073e4.tar.gz px4-firmware-0f7c3926143a917b3e444f0f2c6c2cb673f073e4.tar.bz2 px4-firmware-0f7c3926143a917b3e444f0f2c6c2cb673f073e4.zip |
Initialize altitude is relative field for drop locations
-rw-r--r-- | src/modules/bottle_drop/bottle_drop.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/bottle_drop/bottle_drop.cpp b/src/modules/bottle_drop/bottle_drop.cpp index 5d2343cfb..8e96c3e09 100644 --- a/src/modules/bottle_drop/bottle_drop.cpp +++ b/src/modules/bottle_drop/bottle_drop.cpp @@ -404,16 +404,18 @@ BottleDrop::task_main() memset(&update, 0, sizeof(update)); int parameter_update_sub = orb_subscribe(ORB_ID(parameter_update)); - struct mission_item_s flight_vector_s; - struct mission_item_s flight_vector_e; + struct mission_item_s flight_vector_s {}; + struct mission_item_s flight_vector_e {}; flight_vector_s.nav_cmd = NAV_CMD_WAYPOINT; flight_vector_s.acceptance_radius = 50; // TODO: make parameter flight_vector_s.autocontinue = true; + flight_vector_s.altitude_is_relative = false; flight_vector_e.nav_cmd = NAV_CMD_WAYPOINT; flight_vector_e.acceptance_radius = 50; // TODO: make parameter flight_vector_e.autocontinue = true; + flight_vector_s.altitude_is_relative = false; struct mission_s onboard_mission; memset(&onboard_mission, 0, sizeof(onboard_mission)); |