EgtMachKernel 1.9d1 :

- aggiunto reset tavola e utensile/testa correnti alla creazione di nuovo gruppo di lavoro.
This commit is contained in:
Dario Sassi
2018-04-04 17:58:51 +00:00
parent 777c2ddd03
commit 62e060dbc6
6 changed files with 52 additions and 11 deletions
+27 -10
View File
@@ -67,6 +67,13 @@ Machine::SetCurrTable( const string& sTable)
else
return true ;
}
//----------------------------------------------------------------------------
bool
Machine::ResetCurrTable( void)
{
m_nCalcTabId = GDB_ID_NULL ;
return true ;
}
//----------------------------------------------------------------------------
int
@@ -171,19 +178,11 @@ Machine::GetCurrTableIsTilting( bool& bTilting) const
bool
Machine::SetCurrTool( const string& sTool, const string& sHead, int nExit)
{
// azzero tutto
ResetCurrTool() ;
// controllo GeomDB
if ( m_pGeomDB == nullptr)
return false ;
// azzero tutto
m_nCalcHeadId = GDB_ID_NULL ;
m_nCalcExitId = GDB_ID_NULL ;
m_nCalcToolId = GDB_ID_NULL ;
m_dCalcRot1W = 1 ;
m_nCalcSolCh = MCH_SCC_NONE ;
m_dCalcTLen = 0 ;
m_dCalcTRad = 0 ;
m_dCalcTOvLen = 0 ;
m_dCalcTOvRad = 0 ;
// recupero il gruppo della testa
int nHeadId = GetGroup( sHead) ;
// recupero i dati della testa
@@ -275,6 +274,24 @@ Machine::SetCurrTool( const string& sTool, const string& sHead, int nExit)
return CalculateKinematicChain() ;
}
//----------------------------------------------------------------------------
bool
Machine::ResetCurrTool( void)
{
// azzero tutto
m_nCalcHeadId = GDB_ID_NULL ;
m_nCalcExitId = GDB_ID_NULL ;
m_nCalcToolId = GDB_ID_NULL ;
m_dCalcRot1W = 1 ;
m_nCalcSolCh = MCH_SCC_NONE ;
m_dCalcTLen = 0 ;
m_dCalcTRad = 0 ;
m_dCalcTOvLen = 0 ;
m_dCalcTOvRad = 0 ;
// ritorno
return true ;
}
//----------------------------------------------------------------------------
int
Machine::GetCurrTool( void) const