FERS 0.1.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
simulation_state.h File Reference

Defines the global state for the event-driven simulation engine. More...

#include <cstddef>
#include <cstdint>
#include <optional>
#include <vector>
#include "config.h"
#include "radar/transmitter.h"
+ Include dependency graph for simulation_state.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  core::ActiveStreamingSource
 Cached description of an active streaming transmitter segment. More...
 
struct  core::FmcwChirpBoundaryTracker
 Tracks the current FMCW chirp boundary for a streaming path. More...
 
struct  core::FmcwTriangleBoundaryTracker
 Tracks the current FMCW triangle leg boundary for a streaming path. More...
 
struct  core::StreamingWaveformTracker
 Tracks the current streaming waveform boundary for a path. More...
 
struct  core::ReceiverTrackerCache
 Per-receiver FMCW tracker state for direct and reflected streaming paths. More...
 
struct  core::SimulationState
 Holds the dynamic global state of the simulation. More...
 

Namespaces

namespace  fers_signal
 
namespace  core
 

Enumerations

enum class  core::StreamingWaveformKind : std::uint8_t { core::Cw , core::FmcwLinear , core::FmcwTriangle }
 Streaming waveform shape cached for a currently active source. More...
 

Functions

ActiveStreamingSource core::makeActiveSource (const radar::Transmitter *tx, RealType segment_start, RealType segment_end)
 Builds an active-source cache from a streaming transmitter and segment bounds.
 
ActiveStreamingSource core::makeActiveSourceFromWaveform (const fers_signal::RadarSignal *signal, RealType segment_start, RealType segment_end)
 Builds an active-source cache directly from a waveform for receiver-local LO references.
 
std::optional< RealTypecore::firstFmcwChirpStart (const ActiveStreamingSource &source, RealType active_start, RealType active_end)
 Returns the first FMCW chirp start inside the absolute interval, if one exists.
 
std::uint64_t core::countFmcwChirpStarts (const ActiveStreamingSource &source, RealType active_start, RealType active_end)
 Counts FMCW chirps that start inside the absolute interval.
 
std::optional< RealTypecore::firstFmcwTriangleStart (const ActiveStreamingSource &source, RealType active_start, RealType active_end)
 Returns the first FMCW triangle start inside the absolute interval, if one exists.
 
std::uint64_t core::countFmcwTriangleStarts (const ActiveStreamingSource &source, RealType active_start, RealType active_end)
 Counts FMCW triangles that start inside the absolute interval.
 

Detailed Description

Defines the global state for the event-driven simulation engine.

Definition in file simulation_state.h.