Implemented a feature which allows for an additional field for having a text message

with a motor axis. To this purpose a new derived class SINQAxis and SINQController were
added which other drivers using this feature can derive from. The proof of concept and
test platform is the EL734 driver.
This commit is contained in:
2017-03-20 16:40:25 +01:00
parent 6ea6fdcb85
commit af4d16d25f
11 changed files with 189 additions and 16 deletions

View File

@@ -7,13 +7,13 @@ February 2013
*/
#include "asynMotorController.h"
#include "asynMotorAxis.h"
#include "SINQController.h"
#include "SINQAxis.h"
#define MAX_EL734_AXES 12
#define COMLEN 80
class EL734Axis : public asynMotorAxis
class EL734Axis : public SINQAxis
{
public:
/* These are the methods we override from the base class */
@@ -34,11 +34,14 @@ private:
double position;
int homing;
time_t next_poll;
int ErrTxtIdx;
void forwardErrorTxt(EL734Axis *axis);
friend class EL734Controller;
};
class EL734Controller : public asynMotorController {
class EL734Controller : public SINQController {
public:
EL734Controller(const char *portName, const char *EL734PortName, int numAxes);