FERS
0.1.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
waveform_factory.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-only
2
//
3
// Copyright (c) 2006-2008 Marc Brooker and Michael Inggs
4
// Copyright (c) 2008-present FERS Contributors (see AUTHORS.md).
5
//
6
// See the GNU GPLv2 LICENSE file in the FERS project root for more information.
7
8
/**
9
* @file waveform_factory.h
10
* @brief Interface for loading waveform data into RadarSignal objects.
11
*/
12
13
#pragma once
14
15
#include <memory>
16
#include <string>
17
18
#include "
core/config.h
"
19
#include "
core/sim_id.h
"
20
#include "
signal/radar_signal.h
"
21
22
namespace
serial
23
{
24
/**
25
* @brief Loads a radar waveform from a file and returns a RadarSignal object.
26
*
27
* @param name The name of the radar signal.
28
* @param filename The path to the file containing the waveform data.
29
* @param power The power of the radar signal in the waveform.
30
* @param carrierFreq The carrier frequency of the radar signal.
31
* @param id Optional explicit waveform identifier.
32
* @param kind Radar mode assigned to the loaded samples.
33
* @return A unique pointer to a RadarSignal object loaded with the waveform data.
34
* @throws std::runtime_error If the file cannot be opened or the file format is unrecognized.
35
*/
36
[[
nodiscard
]] std::unique_ptr<fers_signal::RadarSignal>
37
loadWaveformFromFile
(
const
std::string& name,
const
std::string&
filename
,
RealType
power,
RealType
carrierFreq
,
38
const
SimId
id
= 0,
39
fers_signal::FileWaveformKind
kind =
fers_signal::FileWaveformKind::Pulsed
);
40
}
config.h
Global configuration file for the project.
RealType
double RealType
Type for real numbers.
Definition
config.h:27
fers_signal::FileWaveformKind
FileWaveformKind
Simulation mode assigned to samples loaded from a waveform file.
Definition
radar_signal.h:44
fers_signal::FileWaveformKind::Pulsed
@ Pulsed
serial
Definition
antenna_factory.h:30
serial::loadWaveformFromFile
std::unique_ptr< RadarSignal > loadWaveformFromFile(const std::string &name, const std::string &filename, const RealType power, const RealType carrierFreq, const SimId id, const FileWaveformKind kind)
Definition
waveform_factory.cpp:167
radar_signal.h
Classes for handling radar waveforms and signals.
sim_id.h
SimId
uint64_t SimId
64-bit Unique Simulation ID.
Definition
sim_id.h:18
max
math::Vec3 max
Definition
sim_threading.cpp:295
packages
libfers
src
serial
waveform_factory.h
Generated by
1.9.8