- Adapted indenation to new agreed upon system

- Fixed bad status in poldi zug driver
This commit is contained in:
koennecke
2009-02-13 09:01:03 +00:00
parent 6c7bb14fad
commit eb72d5c486
151 changed files with 38234 additions and 38208 deletions

View File

@@ -16,27 +16,27 @@
#ifndef VELODORN
#define VELODORN
/*-------------------- a data structure for status analysis ---------------*/
typedef struct {
char echo[30]; /* echo of command */
char rm[10]; /* operation status: REG == adjusting, STB == idle,
BRE == braking */
int nom_rpm; /* envisaged rotation */
int cur_rpm; /* actual rotation speed */
int pwr; /* loss current, only valid after check */
float curr; /* electircal current */
int rot_temp; /* temperature of rotor */
int cont_temp; /* temperature of housing */
int inl_temp; /* in temperature of cooling water */
int outl_temp; /* temperature of cooling water after
typedef struct {
char echo[30]; /* echo of command */
char rm[10]; /* operation status: REG == adjusting, STB == idle,
BRE == braking */
int nom_rpm; /* envisaged rotation */
int cur_rpm; /* actual rotation speed */
int pwr; /* loss current, only valid after check */
float curr; /* electircal current */
int rot_temp; /* temperature of rotor */
int cont_temp; /* temperature of housing */
int inl_temp; /* in temperature of cooling water */
int outl_temp; /* temperature of cooling water after
velocity selector */
float cool_wat; /* cooling water flow (l/minute) */
float vacuum; /* vacuum (mbar) */
float accel; /* rotation acceleration (g) */
int komm; /* communication status PC-Host,
float cool_wat; /* cooling water flow (l/minute) */
float vacuum; /* vacuum (mbar) */
float accel; /* rotation acceleration (g) */
int komm; /* communication status PC-Host,
0 = enabled, 1 = disabled
*/
int iHz;
} DornierStatus, *pDornierStatus;
*/
int iHz;
} DornierStatus, *pDornierStatus;
/*--------- error codes */
#define NOCOMMAND -300
@@ -48,21 +48,11 @@
#line 41 "velodorn.w"
int GetDornierStatus(void **pData, pDornierStatus pDornier);
int DornierSend(void **pData, char *pCommand, char *pReply, int iLen);
int DecodeNewDornierStatus(char *pText, pDornierStatus pDornier);
int GetDornierStatus(void **pData, pDornierStatus pDornier);
int DornierSend(void **pData, char *pCommand, char *pReply, int iLen);
int DecodeNewDornierStatus(char *pText, pDornierStatus pDornier);
#line 92 "velodorn.w"
#endif