Skip to content

Commit b7eeb79

Browse files
committed
Handle scalar timepts arg in solve_flat_ocp
Fixes gh-1110.
1 parent 52ab45e commit b7eeb79

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

control/flatsys/flatsys.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,7 @@ def solve_flat_ocp(
721721

722722
# Process final time
723723
timepts = np.atleast_1d(timepts)
724-
Tf = timepts[-1]
725-
T0 = timepts[0] if len(timepts) > 1 else T0
724+
T0 = timepts[0] if len(timepts) > 1 else 0
726725

727726
# Process keyword arguments
728727
if trajectory_constraints is None:

0 commit comments

Comments
 (0)