| 86 | } |
| 87 | |
| 88 | void |
| 89 | RMSViewTab::integrateMeasure(qreal timestamp, SUFLOAT mag) |
| 90 | { |
| 91 | int intLen = this->ui->intSpin->value(); |
| 92 | QDateTime date; |
| 93 | |
| 94 | this->energy_accum += mag; |
| 95 | |
| 96 | if (++this->accum_ctr == intLen) { |
| 97 | this->energy_accum /= intLen; |
| 98 | this->data.push_back( |
| 99 | this->energy_accum |
| 100 | + I * SU_ASFLOAT(SU_POWER_DB_RAW(this->energy_accum))); |
| 101 | this->last = timestamp; |
| 102 | this->accum_ctr = 0; |
| 103 | this->energy_accum = 0; |
| 104 | this->ui->waveform->refreshData(); |
| 105 | if (this->ui->autoFitButton->isChecked()) |
| 106 | this->fitVertical(); |
| 107 | this->ui->waveform->invalidate(); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | bool |
| 112 | RMSViewTab::parseLine(void) |
no test coverage detected