Skip to content

Commit 230d806

Browse files
authored
Update mpc.py
1 parent 5c89954 commit 230d806

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • GEMstack/onboard/planning

GEMstack/onboard/planning/mpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ def compute(self, state: VehicleState, component: Component = None):
108108
# Clip reversed part
109109
new_points, new_times = self.clip_reverse_path_with_times(sliced_points, sliced_times)
110110

111+
#New points and times is needed only when running on trajectory that includes both forward and reverse driving that requires gear shifting
112+
new_points = points
113+
new_times = times
114+
111115
# Interpolate trajectory points to match MPC time horizon
112116
traj_points = []
113117
j = 0

0 commit comments

Comments
 (0)