Skip to content

Commit

Permalink
[DEBUG] set XyControlMode=POS_CONTROL_MODE in joystick control, and n…
Browse files Browse the repository at this point in the history
…ormal_land case
  • Loading branch information
HarukiKozukapenguin committed Aug 5, 2023
1 parent 6b211a2 commit 661e128
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aerial_robot_control/src/flight_navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ void BaseNavigator::joyStickControl(const sensor_msgs::JoyConstPtr & joy_msg)

setNaviState(LAND_STATE);
//update
setXyControlMode(POS_CONTROL_MODE)
setTargetXyFromCurrentState();
setTargetYawFromCurrentState();
setTargetPosZ(estimator_->getLandingHeight());
Expand Down Expand Up @@ -638,6 +639,7 @@ void BaseNavigator::update()
if(normal_land && !force_att_control_flag_)
{
setNaviState(LAND_STATE);
setXyControlMode(POS_CONTROL_MODE);
setTargetXyFromCurrentState();
setTargetYawFromCurrentState();
setTargetPosZ(estimator_->getLandingHeight());
Expand Down

0 comments on commit 661e128

Please sign in to comment.