EgtMachKernel :

- in svuotature chiuse migliorata scelta lato ottimale di inizio
- altri sviluppi in SimulatorMP.
This commit is contained in:
Dario Sassi
2024-09-09 09:30:14 +02:00
parent 4b835a27be
commit 431246b472
11 changed files with 303 additions and 173 deletions
+14 -3
View File
@@ -30,9 +30,9 @@ MachMgr::SimInit( void)
delete m_pSimul ;
if ( GetCurrMachine() == nullptr)
return false ;
//if ( GetCurrMachine()->GetMultiProcess())
// m_pSimul = CreateSimulatorMP() ;
//else
if ( GetCurrMachine()->GetMultiProcess( 2))
m_pSimul = CreateSimulatorMP() ;
else
m_pSimul = CreateSimulatorSP() ;
if ( m_pSimul == nullptr)
return false ;
@@ -220,3 +220,14 @@ MachMgr::SimMoveAxes( int nMoveType, const SAMVECTOR& vAxNaEpSt)
// lancio movimento assi
return m_pSimul->MoveAxes( nMoveType, vAxNaEpSt) ;
}
//----------------------------------------------------------------------------
bool
MachMgr::SimSaveCmd( int nType, int nPar, const string& sPar)
{
// verifico simulatore
if ( m_pSimul == nullptr)
return false ;
// salvo il comando
return m_pSimul->SaveCmd( nType, nPar, sPar) ;
}