0

I have a problem with 'Static Target Simulator' from gr-radar toolbox. Simulation of azimuth (angle) works only for few specific values.

Gr-radar is provided with tests for every module (written by author). I ran included in sources test (gr-radar/python/qa_static_target_simulator_cc.py), but with changed azimuth parameter (line 130). Tests passed with azimuth = 10 (original value), but failed with 4,9,15, 20 etc. (my example values) (fails in line 191, self.assertAlmostEqual())

Would anyone be so kind as to confirm my suspicions? Is this simulator not working well?

11
  • Hi ppop, welcome to StackOverflow. I can't really give you an answer, and I'm afraid the GNU Radio community and the author of gr-radar aren't likely to browse by here. Why don't you write Stefan (author!) an email? Sep 17, 2015 at 14:53
  • also, "doesn't work for me" definitely doesn't tell us anything about the problem you're facing, so you should maybe improve both your answer and your email with details. Sep 17, 2015 at 15:01
  • Hi @MarcusMüller , have you ever worked with Gnu Radio? Gr-radar have included tests (standard unit tests wrote in python). My problem is that it didn't passed included tests with changed parameters. I thought that idea of "unit tests" is known on stackoverflow. For example: included tests are checking if number "2" is even. Test is passed. But when i changed to number "4" test are not passed. (In my problem I'm changing azimuth of object, but it will help you understand). I wrote an email to author more than month ago, but get no reply.
    – ppop
    Sep 23, 2015 at 8:59
  • Hi @ppop, yes, I work with GNU Radio :) Hm, Stefan not replying might be because he's really absurdly busy right now. Your original question doesn't even mention the unit tests; I can't guess whatever goes wrong from your description. Why don't you just start editing your question and insert all the details that might be of interest, like exactly what you've tried to modify, and what then happened. "unittest fails" is not an exact statement, either -- which test? How? What did you change? You changed azimuth, but where? I know gr-radar quite well, and you're still not giving enough detail. Sep 23, 2015 at 9:28
  • Ok, thanks. The question should be now improved.
    – ppop
    Sep 29, 2015 at 10:48

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.