Reimplement tie breaking by distance between
This commit is contained in:
parent
c895383a83
commit
07cbef0536
1 changed files with 1 additions and 0 deletions
|
|
@ -340,6 +340,7 @@ class SmartSpiral(ScanPlanner):
|
||||||
return (
|
return (
|
||||||
self.moves_between(current_pos, pos),
|
self.moves_between(current_pos, pos),
|
||||||
self.moves_between(self._initial_position, pos),
|
self.moves_between(self._initial_position, pos),
|
||||||
|
distance_between(current_pos, pos),
|
||||||
)
|
)
|
||||||
|
|
||||||
self._remaining_locations.sort(key=sort_key)
|
self._remaining_locations.sort(key=sort_key)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue