Skip to content

Commit 9a7b3e5

Browse files
committed
Fix use of minDiff for angular velocity
1 parent 6136224 commit 9a7b3e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/software/simulated_tests/terminating_validation_functions/robot_state_validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void robotAtAngularVelocity(RobotId robot_id, std::shared_ptr<World> world_ptr,
8484
<< "There is no robot with ID: " + std::to_string(robot_id);
8585

8686
Robot robot = robot_optional.value();
87-
if (robot.angularVelocity().minDiff(angular_velocity) >
87+
if ((robot.angularVelocity() - angular_velocity).abs() >
8888
close_to_angular_velocity_threshold)
8989
{
9090
return robot.angularVelocity();

0 commit comments

Comments
 (0)