Skip to content

Commit 2e10c5e

Browse files
author
Luca Toniolo
committed
add TC_SPHERICAL case to avoid error
1 parent a78e424 commit 2e10c5e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/emc/tp/tc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ int tcGetCurrentTangentUnitVector(TC_STRUCT const * const tc, PmCartesian * cons
349349
pmCircleTangentVector(&tc->coords.circle.xyz, current_angle, out);
350350
}
351351
break;
352+
case TC_SPHERICAL:
353+
// Spherical arcs used for blending - tangent calculation at arbitrary
354+
// progress not yet implemented, direction will be zeroed in caller
355+
return -1;
352356
default:
353357
rtapi_print_msg(RTAPI_MSG_ERR, "Invalid motion type %d!\n", tc->motion_type);
354358
return -1;

0 commit comments

Comments
 (0)