- Adding first working version of new AMOR settings module
- Improved sls magnet driver
This commit is contained in:
28
amorcomp.h
Normal file
28
amorcomp.h
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
AMOR component handling module. For the new (2005) calculation of the
|
||||
positions using the beam height as zero.
|
||||
|
||||
copyright: see file COPYRIGHT
|
||||
|
||||
Mark Koennecke, October 2005
|
||||
-----------------------------------------------------------------------*/
|
||||
#ifndef AMORCOMP
|
||||
#define AMORCOMP
|
||||
#include <stdio.h>
|
||||
#include <sics.h>
|
||||
|
||||
typedef struct {
|
||||
int activeFlag; /* component present */
|
||||
double markOffset; /* offset mark to real */
|
||||
double scaleOffset; /* offset of the scale */
|
||||
double readPosition; /* the position as read */
|
||||
} amorComp, *pamorComp;
|
||||
/*----------------------------------------------------------------------*/
|
||||
double calcCompPosition(pamorComp comp);
|
||||
int handleCompCommand(pamorComp comp, SConnection *pCon,
|
||||
int argc, char *argv[]);
|
||||
int saveAmorComp(FILE *fd, char *name, char *compname, pamorComp comp);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user