Skip to content

Commit

Permalink
fixed response of enable_callbacks service
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Nov 24, 2023
1 parent 92e6a42 commit 1d71c6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/control_manager/control_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ class ControlManager : public nodelet::Nodelet {
bool _odometry_innovation_check_enabled_ = false;
double _odometry_innovation_threshold_ = 0; // innovation size for triggering eland

// are callbacks enabled to trackers?
bool callbacks_enabled_ = true;

// | ------------------------ parachute ----------------------- |
Expand Down Expand Up @@ -4492,7 +4491,7 @@ bool ControlManager::callbackEnableCallbacks(std_srvs::SetBool::Request& req, st

std::stringstream ss;

ss << "callbacks " << (output_enabled_ ? "enabled" : "disabled");
ss << "callbacks " << (callbacks_enabled_ ? "enabled" : "disabled");

res.message = ss.str();
res.success = true;
Expand Down

0 comments on commit 1d71c6f

Please sign in to comment.