Use actual motor names when reporting a tasub setup error.

This commit is contained in:
Ferdi Franceschini
2014-09-17 07:37:26 +10:00
parent b3d8f1bdae
commit 85cbe1eb38

16
tasub.c
View File

@ -370,14 +370,14 @@ int TasUBFactory(SConnection * pCon, SicsInterp * pSics, void *pData,
/*
curvature motors may be missing, anything else is a serious problem
*/
status += testMotor(pNew, pCon, "a1", A1);
status += testMotor(pNew, pCon, "a2", A2);
status += testMotor(pNew, pCon, "a3", A3);
status += testMotor(pNew, pCon, "a4", A4);
status += testMotor(pNew, pCon, "sgu", SGU);
status += testMotor(pNew, pCon, "sgl", SGL);
status += testMotor(pNew, pCon, "a5", A5);
status += testMotor(pNew, pCon, "a6", A6);
status += testMotor(pNew, pCon, pNew->motname[A1], A1);
status += testMotor(pNew, pCon, pNew->motname[A2], A2);
status += testMotor(pNew, pCon, pNew->motname[A3], A3);
status += testMotor(pNew, pCon, pNew->motname[A4], A4);
status += testMotor(pNew, pCon, pNew->motname[SGU], SGU);
status += testMotor(pNew, pCon, pNew->motname[SGL], SGL);
status += testMotor(pNew, pCon, pNew->motname[A5], A5);
status += testMotor(pNew, pCon, pNew->motname[A6], A6);
if (status != 8) {
SCWrite(pCon, "ERROR: a required motor is missing, tasub NOT installed",
eError);