diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index b1df791..68ba8d7 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/Simulator.cpp b/Simulator.cpp index 59a532c..fedf69b 100644 --- a/Simulator.cpp +++ b/Simulator.cpp @@ -943,10 +943,13 @@ Simulator::ManageSingleMove( int& nStatus, double& dMove) vtRot.Rotate( vtN, dPrevCoeff * dAngCen) ; // approssimo movimento con 1 o pił step a seconda ci sia Vmill int nStep = 1 ; - const double ANG_STEP = 15.0 ; - const double LEN_STEP = 1.0 ; - if ( m_nVmId != GDB_ID_NULL) - nStep = int( max( max( abs( dDiffAng) / ANG_STEP, abs( dDiffAng * DEGTORAD * dRad) / LEN_STEP), 1.0)) ; + if ( m_nVmId != GDB_ID_NULL) { + const double LEN_STEP = 2. ; + nStep = max( int( abs( dDiffAng * DEGTORAD * dRad) / LEN_STEP), 1) ; + const double ANG_STEP = 10. ; + if ( abs( dDiffAng) / nStep > ANG_STEP) + nStep = int( abs( dDiffAng) / ANG_STEP) ; + } for ( int i = 1 ; i <= nStep ; ++ i) { double dCurrCoeff = dPrevCoeff + ( m_dCoeff - dPrevCoeff) / nStep * i ; // assi lineari