motion: Fix motion::triple_move step count limit

Do not assume any step can be merged while moving three axes at the same
time.

Use the worst case scenario involving indepedent parameters for each
axis.
pull/161/head
Yuri D'Elia 2022-05-11 00:06:23 +02:00 committed by DRracer
parent f428075a4d
commit afead891d1
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ TEST_CASE("motion::triple_move", "[motion]") {
motion.PlanMoveTo(Pulley, p, 1);
// perform the move with a maximum step limit
REQUIRE(stepUntilDone(std::max({ i, s, p }) + 1) != -1);
REQUIRE(stepUntilDone(i + s + p) != -1);
// check queue status
REQUIRE(motion.QueueEmpty());