Skip to content

Commit

Permalink
fixing prints
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Mar 6, 2024
1 parent b5b825d commit 8fe08e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/mpc_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ void MpcController::updateInactive(const mrs_msgs::UavState &uav_state, [[maybe_

MpcController::ControlOutput MpcController::updateActive(const mrs_msgs::UavState &uav_state, const mrs_msgs::TrackerCommand &tracker_command) {

mrs_lib::Routine profiler_routine = profiler_.createRoutine("update");
mrs_lib::ScopeTimer timer = mrs_lib::ScopeTimer("MpcController::update", common_handlers_->scope_timer.logger, common_handlers_->scope_timer.enabled);
mrs_lib::Routine profiler_routine = profiler_.createRoutine("updateActive");
mrs_lib::ScopeTimer timer = mrs_lib::ScopeTimer("MpcController::updateActive", common_handlers_->scope_timer.logger, common_handlers_->scope_timer.enabled);

auto drs_params = mrs_lib::get_mutexed(mutex_drs_params_, drs_params_);

Expand Down Expand Up @@ -1993,7 +1993,7 @@ void MpcController::timerGains(const ros::TimerEvent &event) {

mrs_lib::Routine profiler_routine = profiler_.createRoutine("timerGains", _gain_filtering_rate_, 1.0, event);
mrs_lib::ScopeTimer timer =
mrs_lib::ScopeTimer("MpcController::timerHwApiCapabilities", common_handlers_->scope_timer.logger, common_handlers_->scope_timer.enabled);
mrs_lib::ScopeTimer("MpcController::timerGains", common_handlers_->scope_timer.logger, common_handlers_->scope_timer.enabled);

auto drs_params = mrs_lib::get_mutexed(mutex_drs_params_, drs_params_);
auto gains = mrs_lib::get_mutexed(mutex_gains_, gains_);
Expand Down
6 changes: 3 additions & 3 deletions src/se3_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ void Se3Controller::updateInactive(const mrs_msgs::UavState& uav_state, [[maybe_

Se3Controller::ControlOutput Se3Controller::updateActive(const mrs_msgs::UavState& uav_state, const mrs_msgs::TrackerCommand& tracker_command) {

mrs_lib::Routine profiler_routine = profiler_.createRoutine("update");
mrs_lib::ScopeTimer timer = mrs_lib::ScopeTimer("Se3Controller::update", common_handlers_->scope_timer.logger, common_handlers_->scope_timer.enabled);
mrs_lib::Routine profiler_routine = profiler_.createRoutine("updateActive");
mrs_lib::ScopeTimer timer = mrs_lib::ScopeTimer("Se3Controller::updateActive", common_handlers_->scope_timer.logger, common_handlers_->scope_timer.enabled);

auto drs_params = mrs_lib::get_mutexed(mutex_drs_params_, drs_params_);

Expand Down Expand Up @@ -1696,7 +1696,7 @@ void Se3Controller::timerGains(const ros::TimerEvent& event) {

mrs_lib::Routine profiler_routine = profiler_.createRoutine("timerGains", _gain_filtering_rate_, 1.0, event);
mrs_lib::ScopeTimer timer =
mrs_lib::ScopeTimer("Se3Controller::timerHwApiCapabilities", common_handlers_->scope_timer.logger, common_handlers_->scope_timer.enabled);
mrs_lib::ScopeTimer("Se3Controller::timerGains", common_handlers_->scope_timer.logger, common_handlers_->scope_timer.enabled);

auto drs_params = mrs_lib::get_mutexed(mutex_drs_params_, drs_params_);
auto gains = mrs_lib::get_mutexed(mutex_gains_, gains_);
Expand Down

0 comments on commit 8fe08e8

Please sign in to comment.