Changeset 13482


Ignore:
Timestamp:
04/30/12 22:53:26 (13 years ago)
Author:
tbretz
Message:
The calibration offset must be subtracted from the voltage to calculate the resistor.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/feedback.cc

    r13479 r13482  
    379379            const double I = double(fCurrentsAvg[i])/fCursorCur;
    380380
    381             res[i] = fVoltGapd[i]/I / conv * 1e6;
     381            res[i] = (fVoltGapd[i]+fCalibrationOffset)/I / conv * 1e6;
    382382            avg[i] = conv * I;
    383383            rms[i] = conv * sqrt(double(fCurrentsRms[i])/fCursorCur-I*I);
Note: See TracChangeset for help on using the changeset viewer.