From e21347d40702555df538bf511c6284d4a00b8a53 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 8 Apr 2019 10:07:38 +0000 Subject: [PATCH] EgtMachKernel : - corretta gestione pausa per collisione quando a fine movimento. --- Simulator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Simulator.cpp b/Simulator.cpp index ce463b6..d6fef0d 100644 --- a/Simulator.cpp +++ b/Simulator.cpp @@ -1017,6 +1017,11 @@ Simulator::ManageSingleMove( int& nStatus, double& dMove) int nErr ; if ( ! OnMove( nErr)) { nStatus = ( Stopped() ? MCH_SIM_STOP : ( nErr == 1 ? MCH_SIM_COLLISION : MCH_SIM_ERR)) ; + // Se arrivato a fine interpolazione movimento, salvo posizioni + if ( m_dCoeff > COEFF_LIM && m_bEnabAxes) { + for ( size_t i = 0 ; i < m_AxesName.size() ; ++ i) + m_AxesVal[i] = AxesEnd[i] ; + } return false ; }