Allow enable/disable (tentative)

This commit is contained in:
brambilla_m
2022-02-28 15:33:47 +01:00
parent 929f9f600d
commit c805385ad1
5 changed files with 177 additions and 65 deletions

View File

@@ -164,4 +164,22 @@ class SeleneController : public pmacController {
};
#define EnableAxisString "ENABLE_AXIS"
class pmacV3Controller : public pmacController {
public:
pmacV3Controller(const char *portName, const char *lowLevelPortName,
int lowLevelPortAddress, int numAxes, double movingPollPeriod,
double idlePollPeriod, const int &extraParams = 2);
// overloaded because we want to enable/disable the motor
asynStatus writeInt32(asynUser *pasynUser, epicsInt32 value);
friend class pmacV3Axis;
friend class pmacAxis;
protected:
int enableAxis_;
};
#endif /* pmacController_H */