Skip to content

About

Albers Radar Example Solution

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Radar Detection System

A Rust implementation of a radar detection system that calculates target distance and radar cross section (RCS) from radar pulse measurements.

Overview

This project implements some core functionality of a radar system by processing radar pulse detections to determine:

  1. Distance to target - Calculated from the round-trip time of the radar pulse
  2. Radar cross section (RCS) - Derived from the received signal amplitude using the radar range equation

The system uses realistic radar parameters typical of marine radar systems (25kW transmit power, 40dB antenna gain) and includes error handling for edge cases and invalid measurements.

Core Functionality

Detection Structure

The Detection struct represents a single radar measurement containing:

  • timestamp_ns: Time delay in nanoseconds from pulse transmission to reception
  • amplitude_dbm: Received signal strength in decibels relative to milliwatt (dBm)

Key Methods

  • get_distance(): Calculates target distance using the speed of light and round-trip time
  • get_radar_cross_section(): Computes RCS using the radar range equation with built-in validation

Radar Range Equation Implementation

The system implements the bistatic radar equation:

σ = (P_r × (4π)² × R⁴) / (P_t × G_t × A_e)

Where:

  • σ = Radar cross section (m²)
  • P_r = Received power (watts)
  • R = Range to target (meters)
  • P_t = Transmitted power (watts)
  • G_t = Transmit antenna gain
  • A_e = Effective antenna area (m²)

Error Handling

The system includes robust error handling for:

  • Non-positive radar cross section values
  • Unrealistically small RCS values (< 1e-6 m²)
  • Unrealistically large RCS values (> 1e6 m²)

Usage

let detection = Detection::new(6_667, -60);  // 6.667μs delay (~1 km), -60dBm amplitude
let range = detection.get_distance();

match detection.get_radar_cross_section(range) {
    Ok(rcs) => println!("Range: {:.2} m, RCS: {:.2e} m²", range, rcs),
    Err(e) => println!("Error: {}", e),
}

Building and Running

cargo run

Dependencies

  • thiserror: For structured error handling

System Parameters

  • Transmit Power: 25 kW (typical marine radar)
  • Antenna Gain: 40 dB (~10,000x amplification)
  • Effective Antenna Area: 0.785 m² (1m diameter dish)
  • Speed of Light: 299,792,458 m/s

About

Albers Radar Example Solution

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages