Changeset 18612 for trunk/FACT++/src


Ignore:
Timestamp:
09/17/16 22:22:32 (8 years ago)
Author:
tbretz
Message:
God knows why the constructur fails to work with gcc 5, I don't...
File:
1 edited

Legend:

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

    r18413 r18612  
    139139        // This is historical and keeps the following code consistent with the
    140140        // 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);
    143143
    144144        const float time = fMsg.time_sec + fMsg.time_ms/1000.;
     
    147147        // So we do:
    148148        for (unsigned int i=0; i<volt.size(); i++)
    149             volt[i] /= 10;
     149            volt[i] = fMsg.adc_values[i]*0.1;
    150150
    151151        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);
    153153
    154154        int mapv[] =
Note: See TracChangeset for help on using the changeset viewer.