This is our new RELEASE-4_0 branch which was taken from ansto/93d9a7c Conflicts: .gitignore SICSmain.c asynnet.c confvirtualmot.c counter.c devexec.c drive.c event.h exebuf.c exeman.c histmem.c interface.h motor.c motorlist.c motorsec.c multicounter.c napi.c napi.h napi4.c network.c nwatch.c nxscript.c nxxml.c nxxml.h ofac.c reflist.c scan.c sicshipadaba.c sicsobj.c site_ansto/docs/Copyright.txt site_ansto/instrument/lyrebird/config/tasmad/sicscommon/nxsupport.tcl site_ansto/instrument/lyrebird/config/tasmad/taspub_sics/tasscript.tcl statusfile.c tasdrive.c tasub.c tasub.h tasublib.c tasublib.h
35 lines
1014 B
C
35 lines
1014 B
C
|
|
/*----------------------------------------------------------------------
|
|
Support module which manages a list of motors and their target values
|
|
when running complex movements. See accompanying tex file for
|
|
more info.
|
|
|
|
copyright: see file COPYRIGHT
|
|
|
|
Mark Koennecke, September 2005
|
|
-----------------------------------------------------------------------*/
|
|
#ifndef SICSMOTLIST
|
|
#define SICSMOTLIST
|
|
#include "sics.h"
|
|
|
|
typedef struct {
|
|
char name[80];
|
|
float target;
|
|
float position;
|
|
pIDrivable pDriv;
|
|
void *data;
|
|
int running;
|
|
long taskID;
|
|
} MotControl, *pMotControl;
|
|
|
|
/*======================================================================*/
|
|
|
|
pIDrivable makeMotListInterface();
|
|
int addMotorToList(int listHandle, char *name, float targetValue);
|
|
int setNewMotorTarget(int listHandle, char *name, float value);
|
|
int getMotorFromList(int listHandle, char *name, pMotControl tuk);
|
|
float getListMotorPosition(int listHandle, char *name);
|
|
void printMotorList(int listHandle, SConnection * pCon);
|
|
|
|
#endif
|