EgtMachKernel :
- aggiunta gestione prima disposizione in lista operazioni - migliorato controllo dati macchina al caricamento - ora macchina deve essere disegnata e definita cinematicamente con tutti gli assi a 0, si definisce la posizione home e dopo il carico viene posta in questa posizione.
This commit is contained in:
+10
-1
@@ -40,7 +40,7 @@ MachMgr::LoadMachine( const string& sMachineName)
|
||||
if ( IsNull( pMch))
|
||||
return false ;
|
||||
// tento di caricarla
|
||||
if ( pMch->Init( sMachineName, this)) {
|
||||
if ( pMch->Init( m_sMachinesDir, sMachineName, this)) {
|
||||
m_vMachines.push_back( Release( pMch)) ;
|
||||
return true ;
|
||||
}
|
||||
@@ -70,6 +70,15 @@ MachMgr::GetCurrMGeoId( void) const
|
||||
return m_vMachines[m_nCurrMch]->GetMGeoId() ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
Machine*
|
||||
MachMgr::GetCurrMachine( void) const
|
||||
{
|
||||
if ( m_nCurrMch < 0 || m_nCurrMch >= int( m_vMachines.size()))
|
||||
return nullptr ;
|
||||
return m_vMachines[m_nCurrMch] ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::SetAxisPos( const string& sAxis, double dVal)
|
||||
|
||||
Reference in New Issue
Block a user