Skip to content

Commit ff4d7b6

Browse files
committed
Remove unused variables in test_optimal_doc
1 parent e29ba64 commit ff4d7b6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

control/tests/optimal_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,6 @@ def vehicle_output(t, x, u, params):
731731
initial_guess[0, :] = (xf[0] - x0[0]) / Tf
732732

733733
# Steering = rate required to turn to proper slope in first segment
734-
straight_seg_length = timepts[-2] - timepts[1]
735-
curved_seg_length = (Tf - straight_seg_length)/2
736734
approximate_angle = math.atan2(xf[1] - x0[1], xf[0] - x0[0])
737735
initial_guess[1, 0] = approximate_angle / (timepts[1] - timepts[0])
738736
initial_guess[1, -1] = -approximate_angle / (timepts[-1] - timepts[-2])

0 commit comments

Comments
 (0)