EgtMachKernel 2.6h1 :

- aggiunta gestione SpecialEstimate (stima speciale lanciata in automatico prima di generare).
This commit is contained in:
Dario Sassi
2024-08-06 14:43:36 +02:00
parent 5a4f77030c
commit 450a37e4f3
7 changed files with 117 additions and 8 deletions
+10 -2
View File
@@ -1,13 +1,14 @@
//----------------------------------------------------------------------------
// EgalTech 2015-2021
// EgalTech 2015-2024
//----------------------------------------------------------------------------
// File : MachineLua.cpp Data : 14.10.21 Versione : 2.3j5
// File : MachineLua.cpp Data : 05.08.24 Versione : 2.6h1
// Contenuto : Implementazione gestione macchina : funzioni Lua.
//
//
//
// Modifiche : 06.05.15 DS Creazione modulo.
// 26.04.20 DS Aggiunta gestione TcPos.
// 05.08.24 DS Aggiunta gestione SpecialEstimate.
//
//----------------------------------------------------------------------------
@@ -34,6 +35,7 @@ static const string FLD_AXISMAXROTADJ = "AxisMaxRotAdj" ;
static const string FLD_EXITMAXADJUST = "ExitMaxAdjust" ;
static const string FLD_EXITMAXROTADJ = "ExitMaxRotAdj" ;
static const string FLD_ANGDELTAMINFORHOME = "AngDeltaMinForHome" ;
static const string FLD_SPECIALESTIMATE = "SpecialEstimate" ;
static const string FLD_NAME = "Name" ;
static const string FLD_PARENT = "Parent" ;
static const string FLD_GEO = "Geo" ;
@@ -342,6 +344,9 @@ Machine::LuaEmtGeneral( lua_State* L)
// lettura eventuale campo 'AngDeltaForHome' dalla tabella (default INFINITO)
double dAngDeltaMinForHome = INFINITO ;
LuaGetTabFieldParam( L, 1, FLD_ANGDELTAMINFORHOME, dAngDeltaMinForHome) ;
// lettura eventuale campo 'SpecialEstimate' dalla tabella (default false)
bool bSpecialEstimate = false ;
LuaGetTabFieldParam( L, 1, FLD_SPECIALESTIMATE, bSpecialEstimate) ;
LuaClearStack( L) ;
// info
@@ -391,6 +396,9 @@ Machine::LuaEmtGeneral( lua_State* L)
// imposto minima differenza angolare da posizione precedente per stare vivino a posizione home
m_pMchLua->m_dAngDeltaMinForHome = dAngDeltaMinForHome ;
// imposto flag per stima speciale
m_pMchLua->m_bSpecialEstimate = bSpecialEstimate ;
return 0 ;
}