Changeset 18612 for trunk/FACT++/src
- Timestamp:
- 09/17/16 22:22:32 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fscctrl.cc
r18413 r18612 139 139 // This is historical and keeps the following code consistent with the 140 140 // previous code which was reading ascii data from the fsc 141 vector<float> volt( fMsg.adc_values, fMsg.adc_values +kNumVoltageChannels);142 vector<float> resist( fMsg.ad7719_values, fMsg.ad7719_values +kNumResistanceChannels);141 vector<float> volt(kNumVoltageChannels); 142 vector<float> resist(kNumResistanceChannels); 143 143 144 144 const float time = fMsg.time_sec + fMsg.time_ms/1000.; … … 147 147 // So we do: 148 148 for (unsigned int i=0; i<volt.size(); i++) 149 volt[i] /= 10;149 volt[i] = fMsg.adc_values[i]*0.1; 150 150 151 151 for (unsigned int i=0; i<resist.size(); i++) 152 resist[i] *=(6.25 * 1024) / (1 << 25);152 resist[i] = fMsg.ad7719_values[i] * (6.25 * 1024) / (1 << 25); 153 153 154 154 int mapv[] =
Note:
See TracChangeset
for help on using the changeset viewer.