Skip to content

Commit

Permalink
made the required changes
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Kumar <[email protected]>
  • Loading branch information
GauravKumar9920 committed Mar 30, 2024
1 parent 2dcec27 commit d580c2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/integration/thruster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ void ThrusterTest::TestWorld(const std::string &_world,
EXPECT_NEAR(0.0, angVel.Y(), _baseTol);
EXPECT_NEAR(0.0, angVel.Z(), _baseTol);
}
ASSERT_FALSE(modelPoses.empty());
auto latest_pose = modelPoses.back();
modelPoses.clear();
propellerAngVels.clear();
Expand Down Expand Up @@ -360,7 +359,7 @@ void ThrusterTest::TestWorld(const std::string &_world,

// the model should have moved. Note that the distance moved is small
// This is because we are sending small forces (deadband/2)
EXPECT_LT(0.1, latest_pose.Pos().X());
EXPECT_LT(0.1, modelPoses.back().Pos().X());

// Check that the propeller are rotating
omega = sqrt(abs(force / (_density * _thrustCoefficient *
Expand Down

0 comments on commit d580c2d

Please sign in to comment.