Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max range to simple Radars #646

Merged
merged 8 commits into from
May 25, 2022
Merged

Conversation

hpritchett-dstl
Copy link
Contributor

@hpritchett-dstl hpritchett-dstl commented May 20, 2022

Currently the RadarBearingRange and RadarElevationBearingRange have no attribute to set its max range.

This PR adds a max_range, and adds in logic to only produce detections for states that lie within the sensor's FOV (similar to how RadarRotatingBearingRange does it).

…tes that do not fall within range of the radar
@hpritchett-dstl hpritchett-dstl requested a review from a team as a code owner May 20, 2022 12:19
@hpritchett-dstl hpritchett-dstl requested review from sdhiscocks and jswright-dstl and removed request for a team May 20, 2022 12:19
@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Merging #646 (92bf9ef) into main (0e2d775) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #646      +/-   ##
==========================================
+ Coverage   94.49%   94.50%   +0.01%     
==========================================
  Files         168      168              
  Lines        8414     8430      +16     
  Branches     1625     1629       +4     
==========================================
+ Hits         7951     7967      +16     
  Misses        345      345              
  Partials      118      118              
Flag Coverage Δ
integration 67.75% <61.90%> (-0.06%) ⬇️
unittests 92.14% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
stonesoup/sensor/radar/radar.py 95.67% <100.00%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e2d775...92bf9ef. Read the comment docs.

stonesoup/sensor/radar/radar.py Show resolved Hide resolved
@hpritchett-dstl hpritchett-dstl changed the title Add max range to RadarElevationBearingRange Add max range to simple Radars May 24, 2022
@sdhiscocks sdhiscocks merged commit 7a4df3d into main May 25, 2022
@sdhiscocks sdhiscocks deleted the RadarElevationBearingRange_max_range branch May 25, 2022 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants