Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBaecker committed Jul 17, 2024
1 parent f2cea04 commit 5b59026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def test_driving_straight_line_with_slippage(system: System):
assert system.odometer.prediction.point.y == pytest.approx(0.0, abs=0.1)


async def test_follow_crops_sinus(system: System, detector: rosys.vision.DetectorSimulation):
async def test_follow_crops(system: System, detector: rosys.vision.DetectorSimulation):
for i in range(10):
x = i/10.0
p = rosys.geometry.Point3d(x=x, y=(x/2) ** 3, z=0)
Expand Down Expand Up @@ -176,7 +176,7 @@ async def test_follow_crops_outlier(system: System, detector: rosys.vision.Detec
assert not system.automator.is_running, 'automation should stop if no crops are detected anymore'
assert system.odometer.prediction.point.x == pytest.approx(2.6, abs=0.1)
assert system.odometer.prediction.point.y == pytest.approx(0, abs=0.05)
assert 0 <= system.odometer.prediction.yaw_deg <= 45
assert system.odometer.prediction.yaw_deg == pytest.approx(0, abs=0.2)


async def test_follow_crops_outlier_last(system: System, detector: rosys.vision.DetectorSimulation):
Expand Down

0 comments on commit 5b59026

Please sign in to comment.