Skip to content

Commit eda8062

Browse files
committed
defined update method
1 parent 18c0883 commit eda8062

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/control/lqr/lqr_controller.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ def __init__(self, spec, course=None):
5151

5252
self.spd_prf = TrapezoidalSpeedProfile(max_spd_mps, self.MAX_ACCEL_MPS2, distance_m)
5353

54+
def update(self, state, time_s):
55+
"""
56+
Function to update data for path tracking
57+
state: Vehicle's state object
58+
time_s: Simulation interval time[sec]
59+
"""
60+
61+
if not self.course: return
62+
5463
def draw(self, axes, elems):
5564
"""
5665
Function to draw target point on course

0 commit comments

Comments
 (0)