Code Monkey home page Code Monkey logo

sfnd_radar's Introduction

SFND_Radar

This repository contains the submission for the Radar project which is part of Udacity's Sensor Fusion Nanodegree program.

Implementation steps for the 2D CFAR process

  • Loop over elements of RDM array each iteration selecting one cell to be the CUT (Cell Under Test)
    for i = Tr+Gr+1 : (Nr/2)-(Gr+Tr)
    for j = Td+Gd+1 : Nd-(Gd+Td)
  • For each iteration loop over the training cells "excluding the guarding cells" to sum their values
    for p = i-(Tr+Gr) : i+(Tr+Gr)
    for q = j-(Td+Gd) : j+(Td+Gd)
  • Calculate the average of the noise value
    noise_level = noise_level + db2pow(RDM(p,q));
  • Convert using pow2db
    th = pow2db(noise_level/(2*(Td+Gd+1)*2*(Tr+Gr+1)-(Gr*Gd)-1));
  • Add the offset value
    th = th + offset;
  • If the CUT is greater then the threshold replace it by 1, else 0

Selection of Training, Guard cells and offset

  • Tr = 10, Td = 8 For both Range and Doppler Training Cells.
  • Gr = 4, Gd = 4 For both Range and Doppler Guard Cells.
  • offset = 1.3 the offset value.

Steps taken to suppress the non-thresholded cells at the edges

This was done throught sclicing the output such that we have the surrounding rows and columns sepending on the Training cells for both range and doppler.
RDM(union(1:(Tr+Gr),end-(Tr+Gr-1):end),:) = 0; % Rows
RDM(:,union(1:(Td+Gd),end-(Td+Gd-1):end)) = 0; % Columns

Output:

This is the output for a target at 120m moving at -20 m/s relative speed.

Range from First FFT

alt text

Range + Speed from FFT2

alt text

CFAR output

alt text

sfnd_radar's People

Contributors

hagnander avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.