EgtMachKernel 1.8c3 :

- prima versione funzionante di lavorazione generica con script lua
- corretta funzione per Lua EmtAddArcMove
- aggiunta VerifyAngleOutstroke
- corretta assegnazione valore precedente ad asse indeterminato
- corretta assegnazione angoli tenendo conto dei precedenti durante lavorazione.
This commit is contained in:
Dario Sassi
2017-03-08 19:47:08 +00:00
parent 0b1fe4b106
commit 6fce5b366d
16 changed files with 163 additions and 66 deletions
+16
View File
@@ -1148,6 +1148,22 @@ Machine::LimitAngleToStroke( int nInd, double& dAng) const
return true ;
}
//----------------------------------------------------------------------------
bool
Machine::VerifyAngleOutstroke( int nInd, double dAng) const
{
// se angolo fittizio (non esiste l'asse rotante corrispondente), va bene
if ( nInd < 0 || nInd >= int( m_vCalcRotAx.size()))
return true ;
// se angolo fuori corsa, errore
if ( dAng < m_vCalcRotAx[nInd].stroke.Min)
return false ;
else if ( dAng > m_vCalcRotAx[nInd].stroke.Max)
return false ;
// va bene
return true ;
}
//----------------------------------------------------------------------------
bool
Machine::VerifyOutstroke( double dX, double dY, double dZ, const DBLVECTOR& vAng, int& nStat) const