EgtMachKernel 2.5a3 :

- correzione calcolo assi rotanti nel caso indeterminato con corsa asse che non comprende lo zero.
This commit is contained in:
DarioS
2023-01-26 10:07:05 +01:00
parent 4e8953e864
commit 4f264ee64e
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -1070,7 +1070,7 @@ Machine::GetMyAngles( const Vector3d& vtDirT, const Vector3d& vtDirA,
}
if ( nStat >= 1) {
// se non riesco ad aggiustare, elimino
if ( ! AdjustAngleInStroke( RotAx1.stroke, dAngA1) ||
if ( ( bDet1 && ! AdjustAngleInStroke( RotAx1.stroke, dAngA1)) ||
( nNumRotAx == 2 && ! AdjustAngleInStroke( RotAx2.stroke, dAngB1))) {
-- nStat ;
// riloco eventuale soluzione rimasta