- Added tabledrive: table driven path for MARS

- Initial MARS development
- Upgraded Manager Manual
This commit is contained in:
koennecke
2005-07-22 14:56:19 +00:00
parent 6ee07a3cef
commit 9e5781718a
6 changed files with 813 additions and 2 deletions

53
tabledrive.h Normal file
View File

@ -0,0 +1,53 @@
/*---------------------------------------------------------------------------
SICS object for driving a couple of motors along a tabulated given path.
copyright: see file COPYRIGHT
Mark Koennecke, July 2005
---------------------------------------------------------------------------*/
#ifndef SICSTABLEDRIVE
#define SICSTABLEDRIVE
#include <sics.h>
#include "../motor.h"
/*-------------------------------------------------------------------------*/
typedef struct{
double lower, position, upper;
int tablePos;
}tdEntry, *ptdEntry;
/*-------------------------------------------------------------------------*/
typedef struct {
char motorName[132];
int table;
pMotor pMot;
}tdMotor, *ptdMotor;
/*-------------------------------------------------------------------------*/
typedef struct{
pObjectDescriptor pDes;
pIDrivable pDriv;
int motorTable;
int tableLength;
float targetPosition;
float currentPosition;
int state;
char orientMotor[80];
int debug;
}TableDrive, *pTableDrive;
/*-------------------------------------------------------------------------*/
int TableDriveFactory(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
int TableDriveAction(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
#endif