Skip to content

Commit

Permalink
allow switching estimators in ready for takeoff state
Browse files Browse the repository at this point in the history
  • Loading branch information
petrlmat committed Oct 20, 2023
1 parent f8873b0 commit 827a7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/estimation_manager/estimation_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ void EstimationManager::timerCheckHealth([[maybe_unused]] const ros::TimerEvent&

/*//}*/

if (!callbacks_disabled_by_service_ && (sm_->isInState(StateMachine::FLYING_STATE) || sm_->isInState(StateMachine::HOVER_STATE))) {
if (!callbacks_disabled_by_service_ && (sm_->isInState(StateMachine::FLYING_STATE) || sm_->isInState(StateMachine::HOVER_STATE) || sm_->isInState(StateMachine::READY_FOR_TAKEOFF_STATE))) {
callbacks_enabled_ = true;
} else {
callbacks_enabled_ = false;
Expand Down

0 comments on commit 827a7b7

Please sign in to comment.