EgtMachKernel 1.8i2 :

- possibilità di impostare un delta angolo minimo da precedente per fare scelta da home.
This commit is contained in:
Dario Sassi
2017-09-25 07:11:24 +00:00
parent b61d44a0eb
commit 3ab61f71eb
8 changed files with 74 additions and 28 deletions
+7
View File
@@ -31,6 +31,7 @@ static const string FLD_SPECIAL = "Special" ;
static const string FLD_PROCESSOR = "Processor" ;
static const string FLD_AXISMAXADJUST = "AxisMaxAdjust" ;
static const string FLD_EXITMAXADJUST = "ExitMaxAdjust" ;
static const string FLD_ANGDELTAMINFORHOME = "AngDeltaMinForHome" ;
static const string FLD_NAME = "Name" ;
static const string FLD_PARENT = "Parent" ;
static const string FLD_GEO = "Geo" ;
@@ -269,6 +270,9 @@ Machine::LuaEmtGeneral( lua_State* L)
// lettura eventuale campo 'ExitMaxAdjust' dalla tabella (default EPS_SMALL)
double dExitMaxAdjust = EPS_SMALL ;
LuaGetTabFieldParam( L, 1, FLD_EXITMAXADJUST, dExitMaxAdjust) ;
// lettura eventuale campo 'AngDeltaForHome' dalla tabella (default INFINITO)
double dAngDeltaMinForHome = INFINITO ;
LuaGetTabFieldParam( L, 1, FLD_ANGDELTAMINFORHOME, dAngDeltaMinForHome) ;
LuaClearStack( L) ;
// info
@@ -313,6 +317,9 @@ Machine::LuaEmtGeneral( lua_State* L)
m_pMchLua->m_dAxisMaxAdjust = dAxisMaxAdjust ;
m_pMchLua->m_dExitMaxAdjust = dExitMaxAdjust ;
// imposto minima differenza angolare da posizione precedente per stare vivino a posizione home
m_pMchLua->m_dAngDeltaMinForHome = dAngDeltaMinForHome ;
return 0 ;
}