Changeset 16449 for trunk/FACT++
- Timestamp:
- 05/30/13 00:33:44 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ratecontrol.cc
r16445 r16449 147 147 148 148 const uint32_t val[2] = { idx, diff }; 149 Dim Client::sendCommandNB("FTM_CONTROL/SET_THRESHOLD", (void*)val, 8);149 Dim::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", val); 150 150 151 151 fBlock[idx/4] = true; … … 348 348 349 349 const uint32_t val[2] = { -1, diff }; 350 DimClient:: sendCommandNB("FTM_CONTROL/SET_THRESHOLD", (void*)val, 8);350 DimClient::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", val); 351 351 352 352 fThresholdMin = diff; … … 492 492 fThresholds.assign(160, fThresholdMin); 493 493 494 int counter = 1; 495 494 496 const int32_t val[2] = { -1, fThresholdMin }; 495 Dim::SendCommand ("FTM_CONTROL/SET_THRESHOLD", val);497 Dim::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", val); 496 498 497 499 double avg2 = 0; … … 506 508 507 509 const int32_t dat[2] = { i, fThresholds[i] }; 508 Dim::SendCommand ("FTM_CONTROL/SET_THRESHOLD", dat);510 Dim::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", dat); 509 511 510 512 fBlock[i/4] = true; 513 514 counter++; 511 515 } 512 516 } … … 517 521 fDimThreshold.setQuality(2); 518 522 fDimThreshold.Update(data); 523 524 Info("Sent a total of "+to_string(counter)+" commands for threshold setting"); 519 525 520 526 ostringstream out; … … 535 541 536 542 const int32_t val[2] = { -1, fThresholdReference }; 537 Dim:: SendCommand("FTM_CONTROL/SET_THRESHOLD", val);543 Dim::sendCommandNB("FTM_CONTROL/SET_THRESHOLD", val); 538 544 539 545 fThresholds.assign(160, fThresholdReference);
Note:
See TracChangeset
for help on using the changeset viewer.