EgtMachKernel 1.8b7 :
- corretta gestione disposizioni con spostamento pezzi consecutive e con teste diverse - aggiunta GetRotAxisBlocked - aggiunto controllo validità nome su utensili.
This commit is contained in:
@@ -333,6 +333,34 @@ MachMgr::SetRotAxisBlock( const string& sAxis, double dVal)
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::GetRotAxisBlocked( int nInd, string& sAxis, double& dVal)
|
||||
{
|
||||
// se bloccaggi non ancora impostati
|
||||
if ( ! m_vAxisBlock.empty()) {
|
||||
if ( nInd < 0 || nInd >= int( m_vAxisBlock.size()))
|
||||
return false ;
|
||||
sAxis = m_vAxisBlock[nInd].sAxis ;
|
||||
dVal = m_vAxisBlock[nInd].dVal ;
|
||||
return true ;
|
||||
}
|
||||
// altrimenti cerco negli assi rotanti correnti
|
||||
Machine* pMch = GetCurrMachine() ;
|
||||
if ( pMch == nullptr)
|
||||
return false ;
|
||||
int nMyInd = 0 ;
|
||||
for ( int i = 0 ; i < pMch->GetCurrRotAxes() ; ++ i) {
|
||||
if ( pMch->GetKinematicRotAxisBlocked( i, sAxis, dVal)) {
|
||||
if ( nMyInd == nInd)
|
||||
return true ;
|
||||
else
|
||||
++ nMyInd ;
|
||||
}
|
||||
}
|
||||
return false ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::ApplyRotAxisBlock( void)
|
||||
|
||||
Reference in New Issue
Block a user