EgMachKernel :
- aggiunti messaggi di log in caso di erronea definizione terna assi lineari o combinazione assi rotanti.
This commit is contained in:
+7
-2
@@ -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 ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user