Skip to content

Commit

Permalink
fix gimbal_controller timestep sign
Browse files Browse the repository at this point in the history
  • Loading branch information
EliaTarasov authored and TSC21 committed May 16, 2019
1 parent 3062d28 commit 113605b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gazebo_gimbal_controller_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void GimbalControllerPlugin::OnUpdate()
}
else if (time > this->lastUpdateTime)
{
double dt = (this->lastUpdateTime - time).Double();
double dt = (time - this->lastUpdateTime).Double();

// We want yaw to control in body frame, not in global.
this->yawCommand += this->lastImuYaw;
Expand Down

0 comments on commit 113605b

Please sign in to comment.