Skip to content

Commit

Permalink
Navigator: VTOL only apply acceptance radius calculation for FW part …
Browse files Browse the repository at this point in the history
…of back transition (#9519)
  • Loading branch information
sanderux authored and dagar committed May 23, 2018
1 parent 222a91c commit 04cc5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/navigator/mission_block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ MissionBlock::is_mission_item_reached()
}

/* for vtol back transition calculate acceptance radius based on time and ground speed */
if (_mission_item.vtol_back_transition) {
if (_mission_item.vtol_back_transition && !_navigator->get_vstatus()->is_rotary_wing) {

float velocity = sqrtf(_navigator->get_local_position()->vx * _navigator->get_local_position()->vx +
_navigator->get_local_position()->vy * _navigator->get_local_position()->vy);
Expand Down

0 comments on commit 04cc5c5

Please sign in to comment.