Changeset 18036 for trunk


Ignore:
Timestamp:
12/14/14 03:01:50 (10 years ago)
Author:
Daniela Dorner
Message:
updated limits when temperatures are set to 0 to 970 and 1300
File:
1 edited

Legend:

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

    r17636 r18036  
    6868        const double x = R/1000;
    6969        return -193.804 + 96.0651*x + 134.673*x*x - 36.9091*x*x*x;
     70
     71        //for a reasonable range:
     72        // R=970 -> -7.6 degC
     73        // R=1300 -> 77.6 degC
    7074
    7175        //const double R0 = 1000; // 1kOhm
     
    274278
    275279        for (int *pt=mapt; *pt>=0; pt++)
    276             temperatures.push_back(resist[*pt]>800&&resist[*pt]<2000 ? GetTempPT1000(resist[*pt]) : 0);
     280            //temperatures.push_back(resist[*pt]>800&&resist[*pt]<2000 ? GetTempPT1000(resist[*pt]) : 0);
     281            temperatures.push_back(resist[*pt]>970&&resist[*pt]<1300 ? GetTempPT1000(resist[*pt]) : 0);
    277282
    278283        // 0 = 3-(3+0)%4
     
    458463        {
    459464            for (size_t i=0; i<resist.size(); i++)
    460                 if (resist[i]>800 && resist[i]<2000)
     465                //if (resist[i]>800 && resist[i]<2000)
     466                if (resist[i]>970 && resist[i]<1300)
    461467                    Out() << setw(2) << i << " - " << setw(4) << (int)resist[i] << ": " << setprecision(1) << fixed << GetTempPT1000(resist[i]) << endl;
    462468                else
Note: See TracChangeset for help on using the changeset viewer.