Changeset 18036
- Timestamp:
- 12/14/14 03:01:50 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fscctrl.cc
r17636 r18036 68 68 const double x = R/1000; 69 69 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 70 74 71 75 //const double R0 = 1000; // 1kOhm … … 274 278 275 279 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); 277 282 278 283 // 0 = 3-(3+0)%4 … … 458 463 { 459 464 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) 461 467 Out() << setw(2) << i << " - " << setw(4) << (int)resist[i] << ": " << setprecision(1) << fixed << GetTempPT1000(resist[i]) << endl; 462 468 else
Note:
See TracChangeset
for help on using the changeset viewer.