diff --git a/motorApp/OmsSrc/MAX_trajectoryScan.st b/motorApp/OmsSrc/MAX_trajectoryScan.st index a2ce2d30..f38cd2b4 100644 --- a/motorApp/OmsSrc/MAX_trajectoryScan.st +++ b/motorApp/OmsSrc/MAX_trajectoryScan.st @@ -572,8 +572,26 @@ ss maxTrajectoryScan { when (execStatus == STATUS_ABORT) { /* The trajectory_abort state set has detected an abort. It has - * already posted the status and message. Don't execute flyback - * return to top */ + * already posted the status and message. Tell the motors where + * they are. */ + if (debugLevel) printf("\nabort\n"); + pvPut(elapsedTime); + pvPut(execStatus); + pvPut(execMessage); + /* Get the current motor positions, post them */ + %%getMotorPositions(ssId, pVar, pVar->motorCurrent, pVar->motorCurrentRaw, &(pVar->dtime)); + for (j=0; j