Skip to content

Commit

Permalink
Fix thruster integration test (#1767)
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <[email protected]>

Signed-off-by: Nate Koenig <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>
  • Loading branch information
nkoenig and Nate Koenig authored Oct 21, 2022
1 parent 36dda06 commit 77ea80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/thruster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void ThrusterTest::TestWorld(const std::string &_world,
// linear_velocity) / (angular_velocity * propeller_diameter))
// omega = sqrt(thrust /
// (fluid_density * thrust_coefficient * propeller_diameter ^ 4))
if (_calculateCoefficient && gz::math::equal(angularVelocity, 0.0))
if (_calculateCoefficient && !gz::math::equal(angularVelocity, 0.0))
{
_thrustCoefficient = _alpha1 + _alpha2 * (((1 - _wakeFraction) *
propellerLinVels[i].Length()) / (angularVelocity * _diameter));
Expand Down

0 comments on commit 77ea80c

Please sign in to comment.