|
FERS 0.1.0
The Flexible Extensible Radar Simulator
|
Class representing a radar signal with associated properties. More...
#include "radar_signal.h"
Public Member Functions | |
| RadarSignal (std::string name, RealType power, RealType carrierfreq, RealType length, std::unique_ptr< Signal > signal, const SimId id=0) | |
| Constructs a RadarSignal object. | |
| ~RadarSignal ()=default | |
| RadarSignal (const RadarSignal &) noexcept=delete | |
| RadarSignal & | operator= (const RadarSignal &) noexcept=delete |
| RadarSignal (RadarSignal &&) noexcept=delete | |
| RadarSignal & | operator= (RadarSignal &&) noexcept=delete |
| void | setFilename (const std::string &filename) noexcept |
| Sets the filename associated with this signal. | |
| const std::optional< std::string > & | getFilename () const noexcept |
| Gets the filename associated with this signal. | |
| RealType | getPower () const noexcept |
| Gets the power of the radar signal. | |
| RealType | getCarrier () const noexcept |
| Gets the carrier frequency of the radar signal. | |
| const std::string & | getName () const noexcept |
| Gets the name of the radar signal. | |
| SimId | getId () const noexcept |
| Gets the unique ID of the radar signal. | |
| RealType | getRate () const noexcept |
| Gets the sample rate of the radar signal. | |
| unsigned | getSampleCount () const noexcept |
| Gets the number of native samples in the underlying signal. | |
| RealType | getLength () const noexcept |
| Gets the length of the radar signal. | |
| const Signal * | getSignal () const noexcept |
| Gets the underlying signal object. | |
| bool | isCw () const noexcept |
| Returns true when this signal is a continuous-wave signal. | |
| bool | isFmcwChirp () const noexcept |
| Returns true when this signal is an FMCW linear chirp signal. | |
| bool | isFmcwTriangle () const noexcept |
| Returns true when this signal is an FMCW triangular modulation signal. | |
| bool | isFmcwFamily () const noexcept |
| Returns true when this signal belongs to the FMCW waveform family. | |
| const class FmcwChirpSignal * | getFmcwChirpSignal () const noexcept |
| Gets the FMCW chirp implementation, if this signal owns one. | |
| const class FmcwTriangleSignal * | getFmcwTriangleSignal () const noexcept |
| Gets the FMCW triangle implementation, if this signal owns one. | |
| std::vector< ComplexType > | render (const std::vector< interp::InterpPoint > &points, unsigned &size, RealType fracWinDelay) const |
| Renders the radar signal. | |
| std::vector< ComplexType > | renderSlice (const std::vector< interp::InterpPoint > &points, RealType outputStartTime, RealType outputSampleRate, std::size_t sampleCount, RealType fracWinDelay) const |
| Renders a bounded absolute-time slice on the requested output grid. | |
Class representing a radar signal with associated properties.
Definition at line 149 of file radar_signal.h.
| fers_signal::RadarSignal::RadarSignal | ( | std::string | name, |
| RealType | power, | ||
| RealType | carrierfreq, | ||
| RealType | length, | ||
| std::unique_ptr< Signal > | signal, | ||
| const SimId | id = 0 |
||
| ) |
Constructs a RadarSignal object.
| name | The name of the radar signal. |
| power | The power of the radar signal. |
| carrierfreq | The carrier frequency of the radar signal. |
| length | The length of the radar signal. |
| signal | A unique pointer to the Signal object containing the waveform data. |
| std::runtime_error | if the signal is null. |
Definition at line 174 of file radar_signal.cpp.
|
default |
|
deletenoexcept |
|
deletenoexcept |
|
noexcept |
Gets the carrier frequency of the radar signal.
Definition at line 199 of file radar_signal.h.
Referenced by serial::xml_serializer_utils::serializeWaveform().
Here is the caller graph for this function:
|
noexcept |
Gets the filename associated with this signal.
Definition at line 185 of file radar_signal.h.
Referenced by serial::xml_serializer_utils::serializeWaveform().
Here is the caller graph for this function:
|
noexcept |
Gets the FMCW chirp implementation, if this signal owns one.
Definition at line 222 of file radar_signal.cpp.
Referenced by radar::Transmitter::getFmcwSignal(), and serial::xml_serializer_utils::serializeWaveform().
Here is the caller graph for this function:
|
noexcept |
Gets the FMCW triangle implementation, if this signal owns one.
Definition at line 227 of file radar_signal.cpp.
Referenced by serial::xml_serializer_utils::serializeWaveform().
Here is the caller graph for this function:
|
noexcept |
Gets the unique ID of the radar signal.
Definition at line 213 of file radar_signal.h.
Referenced by core::World::resolveReceiverDechirpReferences(), and radar::to_json().
Here is the caller graph for this function:
|
noexcept |
Gets the length of the radar signal.
Definition at line 230 of file radar_signal.h.
|
noexcept |
Gets the name of the radar signal.
Definition at line 206 of file radar_signal.h.
Referenced by core::World::resolveReceiverDechirpReferences(), and serial::xml_serializer_utils::serializeWaveform().
Here is the caller graph for this function:
|
noexcept |
Gets the power of the radar signal.
Definition at line 192 of file radar_signal.h.
Referenced by serial::xml_serializer_utils::serializeWaveform().
Here is the caller graph for this function:
|
noexcept |
Gets the sample rate of the radar signal.
Definition at line 220 of file radar_signal.h.
Referenced by serial::Response::renderBinary(), and serial::Response::sampleRate().
Here is the caller graph for this function:
|
noexcept |
Gets the number of native samples in the underlying signal.
Definition at line 223 of file radar_signal.h.
Referenced by serial::Response::sampleCount().
Here is the caller graph for this function:Gets the underlying signal object.
Definition at line 236 of file radar_signal.h.
Referenced by serial::xml_serializer_utils::serializeWaveform().
Here is the caller graph for this function:
|
noexcept |
Returns true when this signal is a continuous-wave signal.
Definition at line 208 of file radar_signal.cpp.
|
noexcept |
Returns true when this signal is an FMCW linear chirp signal.
Definition at line 210 of file radar_signal.cpp.
|
noexcept |
Returns true when this signal belongs to the FMCW waveform family.
Definition at line 220 of file radar_signal.cpp.
Referenced by core::World::resolveReceiverDechirpReferences().
Here is the caller graph for this function:
|
noexcept |
Returns true when this signal is an FMCW triangular modulation signal.
Definition at line 215 of file radar_signal.cpp.
|
deletenoexcept |
|
deletenoexcept |
| std::vector< ComplexType > fers_signal::RadarSignal::render | ( | const std::vector< interp::InterpPoint > & | points, |
| unsigned & | size, | ||
| RealType | fracWinDelay | ||
| ) | const |
Renders the radar signal.
| points | A vector of interpolation points. |
| size | Reference to store the size of the rendered data. |
| fracWinDelay | Fractional window delay to apply during rendering. |
Definition at line 185 of file radar_signal.cpp.
References max.
Referenced by serial::Response::renderBinary().
Here is the caller graph for this function:| std::vector< ComplexType > fers_signal::RadarSignal::renderSlice | ( | const std::vector< interp::InterpPoint > & | points, |
| RealType | outputStartTime, | ||
| RealType | outputSampleRate, | ||
| std::size_t | sampleCount, | ||
| RealType | fracWinDelay | ||
| ) | const |
Renders a bounded absolute-time slice on the requested output grid.
Definition at line 196 of file radar_signal.cpp.
References max.
Referenced by serial::Response::renderSlice().
Here is the caller graph for this function:Sets the filename associated with this signal.
| filename | The source filename. |
Definition at line 179 of file radar_signal.h.
References max.