From 9b47b777d4f837d696d3855d82ab1d88d0f8c8ac Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 18 Jun 2024 07:34:02 +0200 Subject: [PATCH] EgtMachKernel : - piccola miglioria in simulazione per robot. --- Simulator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Simulator.cpp b/Simulator.cpp index 6a14cc5..f778f99 100644 --- a/Simulator.cpp +++ b/Simulator.cpp @@ -2237,6 +2237,8 @@ Simulator::MoveAxes( int nMoveType, const SAMVECTOR& vAxNaEpSt) // Verifico ci siano assi da muovere if ( vAxNaEpSt.empty()) return SIM_AXMV_RES_ERR ; + // Tipo di cinematica + bool bIsRobot = m_pMchMgr->GetCurrIsRobot() ; // Numero assi da muovere int nAxCount = int( vAxNaEpSt.size()) ; // Posizioni iniziali @@ -2279,11 +2281,11 @@ Simulator::MoveAxes( int nMoveType, const SAMVECTOR& vAxNaEpSt) dStep = 4 * m_dStep ; else if ( abs( dStep - STEP_RAPROT) < EPS_SMALL) { dStep = 0.4 * m_dStep ; - bViewAllFrames = false ; + bViewAllFrames = ( bIsRobot ? true : false) ; } else { // STEP_COLLROT dStep = min( 0.4 * m_dStep, 10.) ; - bViewAllFrames = false ; + bViewAllFrames = ( bIsRobot ? true : false) ; } } dStep = max( dStep, 1.) ;