Files
sics/oscillate.h
koennecke 91d4af0541 - Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
2009-02-13 09:00:03 +00:00

35 lines
924 B
C

/*-----------------------------------------------------------------------
Oscillator runs a motor back and forth between its software limits.
copyright: see file COPYRIGHT
Mark Koennecke, November 2004
------------------------------------------------------------------------*/
#ifndef SICSOSCILLATOR
#define SICSOSCILLATOR
#include "motor.h"
typedef struct {
pObjectDescriptor pDes;
pMotor pMot;
int oldRights;
float upperLimit;
float lowerLimit;
int nextTargetFlag;
long taskID;
int stopFlag;
SConnection *pCon;
int errorCount;
int debug;
} Oscillator, *pOscillator;
/*---------------------------------------------------------------------*/
int MakeOscillator(SConnection * pCon, SicsInterp * pSics, void *pData,
int argc, char *argv[]);
int OscillatorWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
int argc, char *argv[]);
#endif