Skip to content

Commit

Permalink
Include patch to work on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Mar 31, 2021
1 parent 4c79ede commit dc6f924
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ubuntu/debian/patches/0002_speedlimiter_near.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/src/SpeedLimiter_TEST.cc b/src/SpeedLimiter_TEST.cc
index 08cb396..c01a670 100644
--- a/src/SpeedLimiter_TEST.cc
+++ b/src/SpeedLimiter_TEST.cc
@@ -58,7 +58,7 @@ TEST(SpeedLimiterTest, Default)

vel = 0.0;
EXPECT_DOUBLE_EQ(0.0, limiter.Limit(vel, 4.0, 3.0, 1ms));
- EXPECT_DOUBLE_EQ(0.0, vel);
+ EXPECT_NEAR(0.0, vel, 1e-6);
}

/////////////////////////////////////////////////


1 change: 1 addition & 0 deletions ubuntu/debian/patches/series
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
0004_fix_test_pose_zero_positive.patch
0001_arm_not_buildsamples_test.patch
0002_speedlimiter_near.patch

0 comments on commit dc6f924

Please sign in to comment.