new features for evcontroller Nov.2002 M.Z.
This commit is contained in:
@@ -84,6 +84,23 @@ int TeccGet(pTecsClient conn, float *temp) {
|
||||
OnError: return(-1);
|
||||
}
|
||||
|
||||
int TeccGetX(pTecsClient conn, float *tC, float *tP, float *tDif) {
|
||||
int iret;
|
||||
float tx;
|
||||
|
||||
CocReset(conn);
|
||||
CocReset(conn);
|
||||
ERR_I(CocGetFloat(conn, "set", tC));
|
||||
ERR_I(CocGetFloat(conn, "tx", &tx));
|
||||
ERR_I(CocGetFloat(conn, "tempP", tP));
|
||||
ERR_I(CocPutInt(conn, "readTemp", 1));
|
||||
ERR_I(iret=CocDoIt(conn, response, sizeof(response)));
|
||||
*tDif = *tC - tx;
|
||||
if (iret) ERR_MSG(response);
|
||||
return 0;
|
||||
OnError: return(-1);
|
||||
}
|
||||
|
||||
int TeccSet(pTecsClient conn, float temp) {
|
||||
int iret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user