Use actual motor names when reporting a tasub setup error.
This commit is contained in:
16
tasub.c
16
tasub.c
@ -370,14 +370,14 @@ int TasUBFactory(SConnection * pCon, SicsInterp * pSics, void *pData,
|
|||||||
/*
|
/*
|
||||||
curvature motors may be missing, anything else is a serious problem
|
curvature motors may be missing, anything else is a serious problem
|
||||||
*/
|
*/
|
||||||
status += testMotor(pNew, pCon, "a1", A1);
|
status += testMotor(pNew, pCon, pNew->motname[A1], A1);
|
||||||
status += testMotor(pNew, pCon, "a2", A2);
|
status += testMotor(pNew, pCon, pNew->motname[A2], A2);
|
||||||
status += testMotor(pNew, pCon, "a3", A3);
|
status += testMotor(pNew, pCon, pNew->motname[A3], A3);
|
||||||
status += testMotor(pNew, pCon, "a4", A4);
|
status += testMotor(pNew, pCon, pNew->motname[A4], A4);
|
||||||
status += testMotor(pNew, pCon, "sgu", SGU);
|
status += testMotor(pNew, pCon, pNew->motname[SGU], SGU);
|
||||||
status += testMotor(pNew, pCon, "sgl", SGL);
|
status += testMotor(pNew, pCon, pNew->motname[SGL], SGL);
|
||||||
status += testMotor(pNew, pCon, "a5", A5);
|
status += testMotor(pNew, pCon, pNew->motname[A5], A5);
|
||||||
status += testMotor(pNew, pCon, "a6", A6);
|
status += testMotor(pNew, pCon, pNew->motname[A6], A6);
|
||||||
if (status != 8) {
|
if (status != 8) {
|
||||||
SCWrite(pCon, "ERROR: a required motor is missing, tasub NOT installed",
|
SCWrite(pCon, "ERROR: a required motor is missing, tasub NOT installed",
|
||||||
eError);
|
eError);
|
||||||
|
Reference in New Issue
Block a user