Changeset 13071 for trunk/FACT++
- Timestamp:
- 03/12/12 12:37:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/feedback.cc
r13070 r13071 166 166 vec[i+416] = diff; 167 167 168 avg = 0; 169 num = 0; 168 170 if (fControlType==kCurrents) 169 171 { … … 178 180 for (int i=0; i<BIAS::kNumChannels; i++) 179 181 { 180 // 3900 Ohm/n + 1000 Ohm + 11 00 Ohm181 const double R = fMap.hv(i).group()==0 ? 3 075 : 2880;182 // 3900 Ohm/n + 1000 Ohm + 1150 Ohm 183 const double R = fMap.hv(i).group()==0 ? 3125 : 2930; 182 184 const double I = double(fCurrentsAvg[i])/fCursorCur - fCalibration[i]; 183 185 vec[i+416] += R * I*conv; 186 if (fCalibration[i]>0) 187 { 188 avg += vec[i+416]; 189 num++; 190 } 184 191 } 192 avg /= num; 185 193 186 194 fCurrentsAvg.assign(416, 0); … … 194 202 return; 195 203 196 Info("Sending new absolute offset to biasctrl."); 204 ostringstream msg; 205 msg << setprecision(4) << "Sending new absolute offset (" << diff << "V+" << avg << "V) to biasctrl."; 206 Info(msg); 197 207 198 208 DimClient::sendCommandNB((char*)"BIAS_CONTROL/SET_GAPD_REFERENCE_OFFSET",
Note:
See TracChangeset
for help on using the changeset viewer.