From 61e48e2286529ecfda14413354cd383e8907cbf9 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 4 Jan 2017 14:38:10 -0500 Subject: [PATCH] navigator comment fall through in case --- src/modules/navigator/mission_block.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/navigator/mission_block.cpp b/src/modules/navigator/mission_block.cpp index aa1e3d009b..d7ea916fc0 100644 --- a/src/modules/navigator/mission_block.cpp +++ b/src/modules/navigator/mission_block.cpp @@ -513,6 +513,8 @@ MissionBlock::mission_item_to_position_setpoint(const struct mission_item_s *ite case NAV_CMD_TAKEOFF: // set pitch and ensure that the hold time is zero sp->pitch_min = item->pitch_min; + + // fall through case NAV_CMD_VTOL_TAKEOFF: sp->type = position_setpoint_s::SETPOINT_TYPE_TAKEOFF; if(_navigator->get_vstatus()->is_vtol && _param_vtol_wv_takeoff.get()){ @@ -532,7 +534,7 @@ MissionBlock::mission_item_to_position_setpoint(const struct mission_item_s *ite // initially use current altitude, and switch to mission item altitude once in loiter position sp->alt = math::max(_navigator->get_global_position()->alt, _navigator->get_home_position()->alt + _param_loiter_min_alt.get()); - // no break + // fall through case NAV_CMD_LOITER_TIME_LIMIT: case NAV_CMD_LOITER_UNLIMITED: sp->type = position_setpoint_s::SETPOINT_TYPE_LOITER;