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:
Dario Sassi
2017-03-02 07:56:39 +00:00
parent 0941600e08
commit 284525c926
8 changed files with 63 additions and 8 deletions
+28
View File
@@ -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)