EgtExecutor 2.1c3 :

- in Exe e Lua SetAxisPos restituisce la posizione effettivamente raggiunta dall'asse.
This commit is contained in:
Dario Sassi
2019-03-20 07:51:01 +00:00
parent 00b1ffb10b
commit eb4ad988bf
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -2913,12 +2913,12 @@ ExeGetAllTablesNames( STRVECTOR& vNames)
//-----------------------------------------------------------------------------
bool
ExeSetAxisPos( const string& sAxis, double dVal)
ExeSetAxisPos( const string& sAxis, double dVal, double* pdNewVal)
{
IMachMgr* pMachMgr = GetCurrMachMgr() ;
VERIFY_MACHMGR( pMachMgr, false)
// metto l'asse nella nuova posizione
return pMachMgr->SetAxisPos( sAxis, dVal) ;
return pMachMgr->SetAxisPos( sAxis, dVal, pdNewVal) ;
}
//-----------------------------------------------------------------------------
BIN
View File
Binary file not shown.
+4 -2
View File
@@ -3341,10 +3341,12 @@ LuaSetAxisPos( lua_State* L)
LuaCheckParam( L, 2, dVal)
LuaClearStack( L) ;
// metto l'asse nella nuova posizione
bool bOk = ExeSetAxisPos( sAxis, dVal) ;
double dNewVal = dVal ;
bool bOk = ExeSetAxisPos( sAxis, dVal, &dNewVal) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
LuaSetParam( L, dNewVal) ;
return 2 ;
}
//-------------------------------------------------------------------------------