Fixed a bug with inproperly cleared MsgTxt in SINQAxis

Extended pmacAxis to properly deal with HRPT pmac motors which have an extra error condition
This commit is contained in:
2019-05-13 12:03:24 +02:00
parent 3bea34700e
commit f424477a6a
8 changed files with 89 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ class pmacAxis : public SINQAxis
asynStatus poll(bool *moving);
asynStatus setPosition(double position);
private:
protected:
pmacController *pC_;
asynStatus getAxisStatus(bool *moving);
@@ -60,5 +60,19 @@ class pmacAxis : public SINQAxis
friend class pmacController;
};
class pmacHRPTAxis : public pmacAxis
{
public:
pmacHRPTAxis(pmacController *pController, int axisNo) : pmacAxis(pController,axisNo) {};
/**
* Override getAxisStatus in order to read the special parameter indicating a
* slit blade crash at HRPT
*/
asynStatus getAxisStatus(bool *moving);
protected:
friend class pmacController;
};
#endif /* pmacAxis_H */