Skip to content

Commit

Permalink
Remove the incorrect force generated by moment (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
lum-supakorn authored Jun 23, 2020
1 parent 309f7b0 commit 726c066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liftdrag_plugin/liftdrag_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ void LiftDragPlugin::OnUpdate()
// gzerr << this->cp << " : " << this->link->GetInertial()->CoG() << "\n";

// force and torque about cg in inertial frame
ignition::math::Vector3d force = lift + drag + moment.Cross(momentArm);
ignition::math::Vector3d force = lift + drag;

ignition::math::Vector3d torque = moment - lift.Cross(momentArm) - drag.Cross(momentArm);

Expand Down

0 comments on commit 726c066

Please sign in to comment.