EgtMachKernel :

- corretta gestione pausa per collisione quando a fine movimento.
This commit is contained in:
Dario Sassi
2019-04-08 10:07:38 +00:00
parent e64e4362c2
commit e21347d407
+5
View File
@@ -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 ;
}