Skip to content

Commit 5a0aff7

Browse files
Tomas BacaTomas Baca
authored andcommitted
fixed throttle dip during rampup
1 parent eb6c2d4 commit 5a0aff7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/mpc_controller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,11 +1514,11 @@ void MpcController::MPC(const mrs_msgs::UavState &uav_state, const mrs_msgs::Tra
15141514

15151515
rampup_last_time_ = ros::Time::now();
15161516

1517-
throttle = rampup_throttle_;
1518-
15191517
ROS_INFO_THROTTLE(0.1, "[%s]: ramping up throttle, %.4f", name_.c_str(), throttle);
15201518
}
15211519

1520+
throttle = rampup_throttle_;
1521+
15221522
} else {
15231523

15241524
if (desired_thrust_force >= 0) {

src/se3_controller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,11 +1266,11 @@ void Se3Controller::SE3Controller(const mrs_msgs::UavState& uav_state, const mrs
12661266

12671267
rampup_last_time_ = ros::Time::now();
12681268

1269-
throttle = rampup_throttle_;
1270-
12711269
ROS_INFO_THROTTLE(0.1, "[Se3Controller]: ramping up throttle, %.4f", throttle);
12721270
}
12731271

1272+
throttle = rampup_throttle_;
1273+
12741274
} else {
12751275

12761276
if (desired_thrust_force >= 0) {

0 commit comments

Comments
 (0)