Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
set_x not available in this KF1D
Browse files Browse the repository at this point in the history
  • Loading branch information
eFiniLan committed Feb 5, 2024
1 parent 2ffc2fa commit 40216c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selfdrive/car/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ def __init__(self, CP):

def update_speed_kf(self, v_ego_raw):
if abs(v_ego_raw - self.v_ego_kf.x[0][0]) > 2.0: # Prevent large accelerations when car starts at non zero speed
self.v_ego_kf.set_x([[v_ego_raw], [0.0]])
# rick - set_x not available in this KF1D
# self.v_ego_kf.set_x([[v_ego_raw], [0.0]])
self.v_ego_kf.x = [[v_ego_raw], [0.0]]

v_ego_x = self.v_ego_kf.update(v_ego_raw)
return float(v_ego_x[0]), float(v_ego_x[1])
Expand Down

0 comments on commit 40216c3

Please sign in to comment.