| 89 | } |
| 90 | |
| 91 | bool Transceiver::init() |
| 92 | { |
| 93 | if (!sigProcLibSetup(mSPSTx)) { |
| 94 | LOG(ALERT) << "Failed to initialize signal processing library"; |
| 95 | return false; |
| 96 | } |
| 97 | |
| 98 | // initialize filler tables with dummy bursts |
| 99 | for (int i = 0; i < 8; i++) { |
| 100 | signalVector* modBurst = modulateBurst(gDummyBurst, |
| 101 | 8 + (i % 4 == 0), |
| 102 | mSPSTx); |
| 103 | if (!modBurst) { |
| 104 | sigProcLibDestroy(); |
| 105 | LOG(ALERT) << "Failed to initialize filler table"; |
| 106 | return false; |
| 107 | } |
| 108 | |
| 109 | scaleVector(*modBurst,txFullScale); |
| 110 | fillerModulus[i]=26; |
| 111 | for (int j = 0; j < 102; j++) { |
| 112 | fillerTable[j][i] = new signalVector(*modBurst); |
| 113 | } |
| 114 | |
| 115 | delete modBurst; |
| 116 | mChanType[i] = NONE; |
| 117 | channelResponse[i] = NULL; |
| 118 | DFEForward[i] = NULL; |
| 119 | DFEFeedback[i] = NULL; |
| 120 | channelEstimateTime[i] = mTransmitDeadlineClock; |
| 121 | } |
| 122 | |
| 123 | return true; |
| 124 | } |
| 125 | |
| 126 | radioVector *Transceiver::fixRadioVector(BitVector &burst, |
| 127 | int RSSI, |
nothing calls this directly
no test coverage detected