EgMachKernel :

- aggiunti messaggi di log in caso di erronea definizione terna assi lineari o combinazione assi rotanti.
This commit is contained in:
Dario Sassi
2016-11-29 10:32:00 +00:00
parent 3bef4560fd
commit 43ae54ab68
+7 -2
View File
@@ -325,14 +325,18 @@ Machine::CalculateKinematicChain( void)
swap( m_vCalcLinAx[0], m_vCalcLinAx[1]) ;
else if ( m_vCalcLinAx[2].vtDir.IsXplus())
swap( m_vCalcLinAx[0], m_vCalcLinAx[2]) ;
else
else {
LOG_INFO( GetEMkLogger(), "Linear Axes not aligned with Global XYZ")
return false ;
}
}
if ( ! m_vCalcLinAx[1].vtDir.IsYplus()) {
if ( m_vCalcLinAx[2].vtDir.IsYplus())
swap( m_vCalcLinAx[1], m_vCalcLinAx[2]) ;
else
else {
LOG_INFO( GetEMkLogger(), "Linear Axes not aligned with Global XYZ")
return false ;
}
}
// verifiche sugli assi rotanti :
// se 0 o 1 va bene
@@ -370,6 +374,7 @@ Machine::CalculateKinematicChain( void)
}
// altrimenti non ancora gestito, quindi errore
LOG_INFO( GetEMkLogger(), "Rotary Axes not manageable")
return false ;
}