EgtMachKernel :

- aggiunta gestione livello di debug in LOG*.
This commit is contained in:
Dario Sassi
2019-04-01 06:16:03 +00:00
parent 9cd9068b7b
commit e4613162c5
24 changed files with 120 additions and 96 deletions
+9 -9
View File
@@ -615,7 +615,7 @@ Sawing::Apply( bool bRecalc, bool bPostApply)
if ( ! bRecalc && ! bToolChanged &&
( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) {
m_nCuts = nCurrCuts ;
LOG_INFO( GetEMkLogger(), "Sawing apply skipped : status already ok") ;
LOG_DBG_INFO( GetEMkLogger(), "Sawing apply skipped : status already ok") ;
return true ;
}
m_nStatus = MCH_ST_TO_VERIFY ;
@@ -697,7 +697,7 @@ Sawing::Update( bool bPostApply)
// se lavorazione vuota, esco
if ( m_nCuts == 0) {
LOG_INFO( GetEMkLogger(), "Warning in Sawing : No machinable path")
LOG_WARN( GetEMkLogger(), "Warning in Sawing : No machinable path")
return true ;
}
@@ -1306,7 +1306,7 @@ Sawing::ProcessPath( int nPathId, int nPvId, int nClId)
// verifico che il percorso sia abbastanza lungo
double dLen ; pCompo->GetLength( dLen) ;
if ( dLen + m_Params.m_dStartAddLen + m_Params.m_dEndAddLen < 10 * EPS_SMALL) {
LOG_INFO( GetEMkLogger(), "Warning in Sawing : skipped Path too small") ;
LOG_WARN( GetEMkLogger(), "Warning in Sawing : skipped Path too small") ;
return true ;
}
@@ -1553,7 +1553,7 @@ Sawing::ProcessEntity( const ICurve* pCrvP, const ICurve* pCrvC, const ICurve* p
}
}
else {
LOG_INFO( GetEMkLogger(), "Warning in Sawing : Skipped Arc") ;
LOG_WARN( GetEMkLogger(), "Warning in Sawing : Skipped Arc") ;
return true ;
}
}
@@ -1632,7 +1632,7 @@ Sawing::ProcessLine( const ICurve* pCrvP, const ICurveLine* pLineC, const ICurve
return false ;
}
if ( bToSkip) {
LOG_INFO( GetEMkLogger(), "Warning in Sawing : skipped Entity too small") ;
LOG_WARN( GetEMkLogger(), "Warning in Sawing : skipped Entity too small") ;
return true ;
}
@@ -2032,7 +2032,7 @@ Sawing::ProcessExtCurve( const ICurve* pCrvP, const ICurveComposite* pCrvC, cons
}
}
if ( dMinRad < m_pMchMgr->GetCurrMachiningsMgr()->GetExtSawArcMinRad()) {
LOG_INFO( GetEMkLogger(), "Warning in Sawing : Radius too small in ExtSawArc") ;
LOG_WARN( GetEMkLogger(), "Warning in Sawing : Radius too small in ExtSawArc") ;
return true ;
}
// se richiesta generazione, verifico limite standard angolo al centro archi
@@ -2127,7 +2127,7 @@ Sawing::ProcessExtCurve( const ICurve* pCrvP, const ICurveComposite* pCrvC, cons
return false ;
}
if ( bToSkip) {
LOG_INFO( GetEMkLogger(), "Warning in Sawing : skipped Entity too small") ;
LOG_WARN( GetEMkLogger(), "Warning in Sawing : skipped Entity too small") ;
return true ;
}
@@ -2733,7 +2733,7 @@ Sawing::ProcessIntArc( const ICurve* pCrvP, const ICurveArc* pArcC, const ICurve
double dRad = pArc->GetRadius() ;
double dSinA = dSawRad / dRad ;
if ( dSinA > sin( dMaxSideAng * DEGTORAD)) {
LOG_INFO( GetEMkLogger(), "Warning in Sawing : Radius too small in IntSawArc") ;
LOG_WARN( GetEMkLogger(), "Warning in Sawing : Radius too small in IntSawArc") ;
return true ;
}
double dSideAng = - asin( dSinA) * RADTODEG ;
@@ -2821,7 +2821,7 @@ Sawing::ProcessIntArc( const ICurve* pCrvP, const ICurveArc* pArcC, const ICurve
return false ;
}
if ( bToSkip) {
LOG_INFO( GetEMkLogger(), "Warning in Sawing : skipped Entity too small") ;
LOG_WARN( GetEMkLogger(), "Warning in Sawing : skipped Entity too small") ;
return true ;
}
// ricalcolo i versori fresa alle estremità (potrebbero essere cambiate)