static void convert(aiRecord *pai)
{
double val;
val = (double)pai->rval + (double)pai->roff;
/* adjust slope and offset */
if(pai->aslo!=0.0) val*=pai->aslo;
val+=pai->aoff;
/* convert raw to engineering units and signal units */
if(pai->linr == menuConvertNO_CONVERSION) {
; /* do nothing*/
}
else if(pai->linr == menuConvertLINEAR) {
val = (val * pai->eslo) + pai->eoff;
}
Looks just like the R3.14 (and R3.15 code)……
*However* -- the R3.12 code does use EGUL -- but this is over 15 years old.
All links on the EPICS web site point to the current wiki version.
I honestly don't think anyone should invest time into "fixing"
history.
Maybe, but the fact that it seems to be showing up as the top google hit is a matter of concern, I think.
I really (note, no yelling this time :-) ) think that the ancient documentation should be expunged.