- Timestamp:
- 03/26/12 22:02:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/feedback.cc
r13235 r13238 216 216 // have a 1kOhm instead of 390 Ohm serial resistor 217 217 if (i==66 || i==193) 218 U /= 2 665./R[0]; // (1k)2665 / (390)2400 / (~0)2110218 U /= 2110./R[0]; // (1k)2665 / (390)2400 / (~0)2110 219 219 if (i==191) 220 U /= 2 594./R[1]; // (1k)2794 / (390)2320 / (~0)2110220 U /= 2110./R[1]; // (1k)2794 / (390)2320 / (~0)2110 221 221 222 222 vec[i+BIAS::kNumChannels] += U; … … 262 262 { 263 263 msg.str(""); 264 msg << " Avg0=" << setw( 5) << avg[0]/num[0] << " | Avg1=" << setw(5) << avg[1]/num[1] << endl;264 msg << " Avg0=" << setw(7) << avg[0]/num[0] << " | Avg1=" << setw(7) << avg[1]/num[1]; 265 265 Debug(msg); 266 266 267 267 msg.str(""); 268 msg << " Med0=" << setw( 5) << med[0][num[0]/2] << " | Med1=" << setw(5) << med[1][num[1]/2] << endl;268 msg << " Med0=" << setw(7) << med[0][num[0]/2] << " | Med1=" << setw(7) << med[1][num[1]/2]; 269 269 Debug(msg); 270 270 271 271 msg.str(""); 272 msg << " Min0=" << setw( 5) << min[0] << " | Min1=" << setw(5) << min[1] << endl;272 msg << " Min0=" << setw(7) << min[0] << " | Min1=" << setw(7) << min[1]; 273 273 Debug(msg); 274 274 275 275 msg.str(""); 276 msg << " Max0=" << setw( 5) << max[0] << " | Max1=" << setw(5) << max[1] << endl;276 msg << " Max0=" << setw(7) << max[0] << " | Max1=" << setw(7) << max[1]; 277 277 Debug(msg); 278 278 } … … 551 551 Info("Sending new relative offset to biasctrl."); 552 552 553 DimClient::sendCommandNB("BIAS_CONTROL/ ADD_REFERENCE_VOLTAGES",553 DimClient::sendCommandNB("BIAS_CONTROL/INCREASE_ALL_CHANNELS_VOLTAGE", 554 554 vec.data()+BIAS::kNumChannels, BIAS::kNumChannels*sizeof(float)); 555 555 } … … 683 683 Info("Sending new global relative offset to biasctrl."); 684 684 685 DimClient::sendCommandNB("BIAS_CONTROL/ ADD_REFERENCE_VOLTAGES",685 DimClient::sendCommandNB("BIAS_CONTROL/INCREASE_ALL_CHANNELS_VOLTAGE", 686 686 vec.data()+BIAS::kNumChannels, BIAS::kNumChannels*sizeof(float)); 687 687 }
Note:
See TracChangeset
for help on using the changeset viewer.