EgtMachKernel :

- aggiunta gestione lunghezza ingombro portautensile negativa per indicare spazio libero sulla testa.
This commit is contained in:
DarioS
2022-05-16 18:35:15 +02:00
parent a677bb991f
commit 88912bf524
+6 -2
View File
@@ -688,8 +688,12 @@ ToolsMgr::GetCurrToolMaxDepth( double dSafe, double& dMaxDepth) const
GetValInNotes( m_tdCurrTool.m_sSysNotes, TSI_THLEN, dTHoldLen) ;
GetValInNotes( m_tdCurrTool.m_sSysNotes, TSI_THDIAM, dTHoldDiam) ;
}
// calcolo il massimo affondamento
dMaxDepth = m_tdCurrTool.m_dLen - ( m_tdCurrTool.m_dDiam > dTHoldDiam ? 0 : dTHoldLen) - dSafe ;
// calcolo il massimo affondamento (lunghezza TH negativa significa che TH è parte della testa)
dMaxDepth = m_tdCurrTool.m_dLen - dSafe ;
if ( m_tdCurrTool.m_dDiam > dTHoldDiam)
dMaxDepth -= min( 0., dTHoldLen) ;
else
dMaxDepth -= max( 0., dTHoldLen) ;
return true ;
}
// se mortasatrice o sega a catena