| 24 | |
| 25 | |
| 26 | CostasRecoveryTask::CostasRecoveryTask( |
| 27 | const SUCOMPLEX *data, |
| 28 | SUCOMPLEX *destination, |
| 29 | size_t length, |
| 30 | SUFLOAT tau, |
| 31 | SUFLOAT loopbw, |
| 32 | enum sigutils_costas_kind kind, |
| 33 | QObject *parent) : |
| 34 | Suscan::CancellableTask(parent) |
| 35 | { |
| 36 | SUFLOAT bw = 1. / tau; |
| 37 | this->origin = data; |
| 38 | this->destination = destination; |
| 39 | this->length = length; |
| 40 | |
| 41 | SU_ATTEMPT(su_costas_init(&this->costas, kind, 0, bw, 3, loopbw)); |
| 42 | |
| 43 | this->costasInitialized = true; |
| 44 | |
| 45 | this->setProgress(0); |
| 46 | this->setStatus("Processing..."); |
| 47 | } |
| 48 | |
| 49 | bool |
| 50 | CostasRecoveryTask::work(void) |
nothing calls this directly
no test coverage detected