Skip to content

Commit

Permalink
define function to update control command
Browse files Browse the repository at this point in the history
  • Loading branch information
ShisatoYano committed Jun 24, 2024
1 parent e133c7e commit 41b5f1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/control/pid/pid_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ def __init__(self, spec, course=None):
"""

self.WHEEL_BASE_M = spec.wheel_base_m

self.course = course

def update(self, state):
"""
Function to update data for path tracking
state: Vehicle's state object
"""

if not self.course: return

0 comments on commit 41b5f1d

Please sign in to comment.