Skip to content

Commit

Permalink
we should actually match what safety is doing! fix lack of test cover…
Browse files Browse the repository at this point in the history
…age near first brake point
  • Loading branch information
sshane committed Oct 26, 2024
1 parent 94e08e9 commit 67af7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/safety/test_ford.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def test_curvature_rate_limit_up(self):

for speed in np.arange(0, 40, 0.5):
limit_command = speed > self.CURVATURE_ERROR_MIN_SPEED
max_delta_up = np.interp(speed, self.ANGLE_RATE_BP, self.ANGLE_RATE_UP)
max_delta_up = np.interp(speed - 1, self.ANGLE_RATE_BP, self.ANGLE_RATE_UP)
max_delta_up_lower = np.interp(speed + 1, self.ANGLE_RATE_BP, self.ANGLE_RATE_UP)

cases = [
Expand All @@ -313,7 +313,7 @@ def test_curvature_rate_limit_down(self):

for speed in np.arange(0, 40, 0.5):
limit_command = speed > self.CURVATURE_ERROR_MIN_SPEED
max_delta_down = np.interp(speed, self.ANGLE_RATE_BP, self.ANGLE_RATE_DOWN)
max_delta_down = np.interp(speed - 1, self.ANGLE_RATE_BP, self.ANGLE_RATE_DOWN)
max_delta_down_lower = np.interp(speed + 1, self.ANGLE_RATE_BP, self.ANGLE_RATE_DOWN)

cases = [
Expand Down

0 comments on commit 67af7f9

Please sign in to comment.