From 9eb3a6d8e759fa154f501323287d9ffc9ac76405 Mon Sep 17 00:00:00 2001 From: Matthew Pearson Date: Tue, 5 Apr 2016 15:22:41 -0400 Subject: [PATCH] Clear the problem bit in MSTA as part of the home function. This fixes a problem introduced in the motor record to do with issuing stops when the record has the RA_PROBLEM bit set. This broke the home function for the XPS controller, because we have to re-home from a problem state. The motor record was issuing a stop as soon as the home function completed, causing the home procedure on the XPS to fail. --- motorApp/NewportSrc/XPSAxis.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/motorApp/NewportSrc/XPSAxis.cpp b/motorApp/NewportSrc/XPSAxis.cpp index 80d6de0f..4eb3bcba 100644 --- a/motorApp/NewportSrc/XPSAxis.cpp +++ b/motorApp/NewportSrc/XPSAxis.cpp @@ -356,6 +356,8 @@ asynStatus XPSAxis::home(double min_velocity, double max_velocity, double accele } moving_ = true; + setIntegerParam(pC_->motorStatusProblem_, 0); + return asynSuccess; }