Skip to content

Commit

Permalink
[Beetle][Nav]fix bug in navicallback during assembly state
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Sep 24, 2024
1 parent 01175d2 commit 6307b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robots/beetle/src/beetle_navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void BeetleNavigator::joyStickControl(const sensor_msgs::JoyConstPtr & joy_msg)

void BeetleNavigator::naviCallback(const aerial_robot_msgs::FlightNavConstPtr & msg)
{
if(getNaviState() == TAKEOFF_STATE || BaseNavigator::getNaviState() == LAND_STATE) return;
if(getNaviState() == TAKEOFF_STATE || BaseNavigator::getNaviState() == LAND_STATE || getModuleState() != SEPARATED) return;

gps_waypoint_ = false;

Expand Down

0 comments on commit 6307b4f

Please sign in to comment.