- new double control (former controlmode = 2)

- better sea client compatibility
This commit is contained in:
zolliker
2006-06-20 13:30:48 +00:00
parent c1bbdb935e
commit 735a0e6987
10 changed files with 556 additions and 94 deletions

View File

@@ -91,6 +91,22 @@ int TeccGetX(pTecsClient conn, float *tC, float *tP, float *tDif) {
OnError: return(-1);
}
int TeccGetMult(pTecsClient conn, int argc, char *argv[], void (* outfunc)(char *, void *), void *arg) {
OutFunc f;
int iret, i;
f.func = outfunc;
f.arg = arg;
CocReset(conn);
for (i=0; i<argc; i++) {
ERR_I(CocGetOut(conn, argv[i], &f));
}
ERR_I(iret=CocDoIt(conn, response, sizeof(response)));
if (iret) ERR_MSG(response);
return 0;
OnError: return -1;
}
int TeccSet(pTecsClient conn, float temp) {
int iret;