Skip to content

Commit

Permalink
CollisionPrevention: remove unnecessary double precision floating poi…
Browse files Browse the repository at this point in the history
…nt math
  • Loading branch information
dagar authored and julianoes committed Oct 17, 2019
1 parent e942d3a commit 6ccb4af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/CollisionPrevention/CollisionPreventionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ TEST_F(CollisionPreventionTest, outsideFOV)

float angle_deg = (float)i * message.increment;
float angle_rad = math::radians(angle_deg);
matrix::Vector2f original_setpoint = {10.f *(float)cos(angle_rad), 10.f *(float)sin(angle_rad)};
matrix::Vector2f original_setpoint = {10.f * cosf(angle_rad), 10.f * sinf(angle_rad)};
matrix::Vector2f modified_setpoint = original_setpoint;
message.timestamp = hrt_absolute_time();
orb_publish(ORB_ID(obstacle_distance), obstacle_distance_pub, &message);
Expand Down

0 comments on commit 6ccb4af

Please sign in to comment.