Changeset 17234
- Timestamp:
- 10/17/13 15:17:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/feedback.cc
r17203 r17234 504 504 505 505 // Current through ~100 Ohm measurement resistor 506 const double I8 = (adc-fCalibDeltaI[i])*fCalibR8[i]/100; 506 //const double I8 = (adc-fCalibDeltaI[i])*fCalibR8[i]/100; 507 const double I8 = adc-fCalibDeltaI[i]; 507 508 508 509 // Current through calibration resistors (R9) 509 // This is uncalibrated, biut since the corresponding calibrated510 // This is uncalibrated, but since the corresponding calibrated 510 511 // value I8 is subtracted, the difference should yield a correct value 511 512 const double I9 = fBiasDac[i] * (1e-3/4096);//U9/R9; [A] 512 513 513 514 // Current in R4/R5 branch 514 const double Iout = I8 - I9;//I8>I9 ? I8 - I9 : 0; 515 //const double Iout = I8 - I9;//I8>I9 ? I8 - I9 : 0; 516 const double Iout = I8 - I9*100/fCalibR8[i];//I8>I9 ? I8 - I9 : 0; 515 517 516 518 // Applied voltage at calibration resistors, according to biasctrl
Note:
See TracChangeset
for help on using the changeset viewer.