Skip to content

Commit

Permalink
[DEBUG][aerial_robot_control] set XyControlMode=POS_CONTROL_MODE in l…
Browse files Browse the repository at this point in the history
…anding and halt
  • Loading branch information
HarukiKozukapenguin committed Aug 4, 2023
1 parent 1c1bc32 commit 6b211a2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ namespace aerial_robot_navigation
if(!teleop_flag_) return;

setNaviState(LAND_STATE);
setXyControlMode(POS_CONTROL_MODE);

setTargetXyFromCurrentState();
setTargetYawFromCurrentState();
Expand All @@ -418,6 +419,7 @@ namespace aerial_robot_navigation
force_landing_flag_ = true;

setNaviState(STOP_STATE);
setXyControlMode(POS_CONTROL_MODE);
setTargetXyFromCurrentState();
setTargetYawFromCurrentState();
setTargetPosZ(estimator_->getLandingHeight());
Expand Down

0 comments on commit 6b211a2

Please sign in to comment.