| 124 | } |
| 125 | |
| 126 | Detection Tracker::predict(Detection current, double acc, double T) |
| 127 | { |
| 128 | double delayTrack = current.get_delay().front(); |
| 129 | double dopplerTrack = current.get_doppler().front(); |
| 130 | double delayPredict = delayTrack+((dopplerTrack*T*lambda)+ |
| 131 | (0.5*acc*T*T))/rangeRes; |
| 132 | double dopplerPredict = dopplerTrack+(acc*T); |
| 133 | Detection prediction(delayPredict, dopplerPredict, 0); |
| 134 | return prediction; |
| 135 | } |
| 136 | |
| 137 | void Tracker::initiate(Detection *detection) |
| 138 | { |
no test coverage detected