From 83a4e4a39e68dc2e6a0f4e896a929ee86eae88d1 Mon Sep 17 00:00:00 2001 From: timmmooney Date: Fri, 4 Apr 2014 21:35:39 +0000 Subject: [PATCH] motorStart array now defined in header, and assigned to PVs. Set motorMVA and motorMAA to max velocity and acceleration. pvPut(motorStart[]) --- motorApp/AerotechSrc/EnsembleTrajectoryScan.st | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/motorApp/AerotechSrc/EnsembleTrajectoryScan.st b/motorApp/AerotechSrc/EnsembleTrajectoryScan.st index 5fe0d8d2..4b98ad6d 100644 --- a/motorApp/AerotechSrc/EnsembleTrajectoryScan.st +++ b/motorApp/AerotechSrc/EnsembleTrajectoryScan.st @@ -131,7 +131,7 @@ int abortState; %% int writeIntAndCheck(SS_ID ssId, struct UserVar *pVar, int n, int ival); double position[MAX_AXES][MAX_ELEMENTS]; double velocity[MAX_AXES][MAX_ELEMENTS]; -double motorStart[MAX_AXES]; +/*double motorStart[MAX_AXES]; now in header and assigned to PVs */ double motorCurr[MAX_AXES]; double motorPosOffset[MAX_AXES]; @@ -353,6 +353,8 @@ ss EnsembleTrajectoryScan { if (fabs(vmax) < .001) vmax = epicsMotorVELO[j]; if (debugLevel>1) printf("vmax=%f\n", vmax); amax = vmax/epicsMotorACCL[j]; + motorMVA[j] = 0.; + motorMAA[j] = 0.; for (k=0; k