improvements:

- added is_running to driveable ease objects
- ighdriv.c: try <maxtry> times when status reply failes
- ipsdriv.c: fix trainedTo parameter
- reduced SEA version of SICS
This commit is contained in:
2021-09-16 12:35:06 +02:00
parent 21299efa80
commit f16d738b4a
10 changed files with 607 additions and 80 deletions

View File

@ -12,6 +12,7 @@ Markus Zolliker, March 2005
#include "sics.h"
#include "logger.h"
#include "hipadaba.h"
int ParPrintf(void *object, int iOut, const char *fmt, ...);
@ -25,6 +26,7 @@ typedef struct ParInfo {
int saveLog; /* bool */
ReadyState state; /* enum ReadyState */
int sugarStatus; /* =1: sugar object made */
pHdb node; /* node for update */
} ParInfo;
#define PAR_LEVELS 8
@ -53,6 +55,8 @@ typedef struct ParData {
pICallBack pCall; /* sics callback function */
SConnection *conn; /* last connection with user or manager priv. */
int verbose; /* verbosity, mainly for tests */
pHdb node; /* node for update */
char *secop_module; /* secop module name, if enabled */
} ParData;
/*
@ -174,7 +178,9 @@ typedef enum {
PAR_LOGSWITCH, /* (de)activate single parameter for logging (1) */
PAR_SAVE, /* save all parameters activated for saving (2) */
PAR_SAVESWITCH, /* (de)activate single parameter for saving (1) */
PAR_KILL /* kill content (called before remove) */
PAR_KILL, /* kill content (called before remove) */
PAR_UPDATE, /* update hipadaba node */
PAR_HDBSET /* set from hipadaba node */
} ParAct;
int ParActionIs(ParAct action);
@ -203,6 +209,7 @@ char *ParGetValueArg(); /* get the set argument for floats and ints. If
/*
functions to be used outside pardef:
*/
void ParUpdateAll(void *object); /* update all hdb nodes */
int ParLog(void *object); /* log all parameters of this object, but only if not
already logged in the interval, returns >= 0 when done,
or < 0, when not done (execute PAR_LOG action) */
@ -241,7 +248,10 @@ char *ParArg2Str(int argc, char *argv[], char *res, int maxsize);
void ParSaveConn(void *object, SConnection * con);
/* save connection for further use */
void ParInitPar(void *object, char *name);
void ParInitPar(void *object, char *name, int logged);
/* inititalize dynamic parameter */
void ParKillPar(void *object, char *name);
/* delete dynamic parameter */
#endif