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 ; }