Skip to content

Commit

Permalink
Markers update (#291)
Browse files Browse the repository at this point in the history
* added markers to be duplicated

* also copy reversed, max accell, and max vel

* Apply formatting changes
  • Loading branch information
amichaelyu authored Mar 27, 2023
1 parent cba693d commit 640fa62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,16 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
while (pathNames.contains(pathName)) {
pathName = '$pathName Copy';
}

_paths.add(RobotPath(
waypoints: RobotPath.cloneWaypointList(
_paths[i].waypoints),
maxVelocity: _paths[i].maxVelocity,
maxAcceleration: _paths[i].maxAcceleration,
isReversed: _paths[i].isReversed,
name: pathName,
markers:
RobotPath.cloneMarkerList(_paths[i].markers),
));
_currentPath = _paths.last;
_savePath(_currentPath!);
Expand Down

0 comments on commit 640fa62

Please sign in to comment.