kit-cel / gr-radar

GNU Radio Radar Toolbox
GNU General Public License v3.0
237 stars 83 forks source link

Fixes to static target simulator #27

Closed mbr0wn closed 6 years ago

stwunsch commented 6 years ago

Thanks!

Petya1981 commented 6 years ago

Hi, I belive the attenuation coefficient was correct (d_scale_ampl[k] = c_light/d_center_freq std::sqrt(d_rcs[k])/std::pow(d_range[k],2)/std::pow(4M_PI,3.0/2.0); )

new code ( d_scale_ampl[k] = std::sqrt(c_light d_rcs[k])/FOUR_PI_CUBED_SQRT/ (d_range[k] d_range[k]) / d_center_freq;) is wrong because attenuation factor must be dimensionless.

mbr0wn commented 6 years ago

@Petya1981 You're obviously right (argh, the shame!) as any look in any radar 101 textbook would confirm. I guess I made a typo in the documentation itself, and then carried that over into the code.