- Added brute force indexing support to ubcalc
- Added calculation of UB from 3 reflections to ubcalc - Added calculation of lattice constants from UB to ubcalc - Some fixes in stdscan in order to make the scripted scan work
This commit is contained in:
30
interface.c
30
interface.c
@@ -42,7 +42,30 @@
|
||||
#include "fortify.h"
|
||||
#include "sics.h"
|
||||
#include "motor.h"
|
||||
|
||||
/*=========================================================================
|
||||
Empty driveable interface functions
|
||||
==========================================================================*/
|
||||
static int EmptyHalt(void *self){
|
||||
return OKOK;
|
||||
}
|
||||
/*-----------------------------------------------------------------------*/
|
||||
static int EmptyLimits(void *self, float fVal, char *error, int errLen){
|
||||
return 1;
|
||||
}
|
||||
/*-----------------------------------------------------------------------*/
|
||||
static long EmptyValue(void *self, SConnection *pCon, float fVal){
|
||||
SCWrite(pCon,"WARNING: empty SetValue",eWarning);
|
||||
return OKOK;
|
||||
}
|
||||
/*-----------------------------------------------------------------------*/
|
||||
static int EmptyStatus(void *self, SConnection *pCon){
|
||||
return HWIdle;
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
static float EmptyGet(void *self, SConnection *pCon){
|
||||
SCWrite(pCon,"WARNING: empty GetValue",eWarning);
|
||||
return 555.55;
|
||||
}
|
||||
/*-------------------------------------------------------------------------*/
|
||||
pIDrivable CreateDrivableInterface(void)
|
||||
{
|
||||
@@ -55,6 +78,11 @@
|
||||
}
|
||||
memset(pRes,0,sizeof(IDrivable));
|
||||
pRes->ID = DRIVEID;
|
||||
pRes->Halt = EmptyHalt;
|
||||
pRes->CheckLimits = EmptyLimits;
|
||||
pRes->SetValue = EmptyValue;
|
||||
pRes->CheckStatus = EmptyStatus;
|
||||
pRes->GetValue = EmptyGet;
|
||||
return pRes;
|
||||
}
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user