From 140d6f20dc5a31095982cd963d10e611489aed45 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 6 Aug 2020 15:04:18 +0200 Subject: [PATCH] Increase the "reserve" length when moving up long wires (ARM run-17). * New: In Katana::Manipulator::moveUp(), if the length of the wire is greater than 60 pitchs, increase the reserve from 0.5 track to 1.0 track. This is to left more free tracks when lots of very long segments are moved up. Make the run 17 of the ARM test bench pass. --- katana/src/Manipulator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/katana/src/Manipulator.cpp b/katana/src/Manipulator.cpp index 4229b217..0b8c3f1d 100644 --- a/katana/src/Manipulator.cpp +++ b/katana/src/Manipulator.cpp @@ -1183,6 +1183,7 @@ namespace Katana { //float reserve = 1.0; float reserve = 0.5; if (_segment->base() and (_segment->base()->getRpDistance() > 2)) reserve = 1.0; + if (_segment->getLength() > 60*getPitch()) reserve = 1.0; if (_segment->isFixed()) return false; if (not (flags & AllowLocalMoveUp)) {