Class Transponder¶
Defined in File comm_devices.h
Inheritance Relationships¶
Base Type¶
public lupnt::Device(Class Device)
Class Documentation¶
-
class Transponder : public lupnt::Device¶
Combined transmit/receive radio device: binds to a named
Channeland both sends and receives data through it.Models a transponder-type radio link (e.g. for two-way range/Doppler measurements between agents) attached to a satellite/rover/ ground-station
Agent, combining theTransmitter/Receiversend and receive behaviors on a singleChannel.Public Functions
-
Transponder() = default¶
-
Transponder(Config &config)¶
Construct a transponder from a YAML config node (see
Device::Device(Config&)).
-
virtual void Step(Real t) override¶
Transponder device step; currently a no-op placeholder. Overrides
Device::Step.
-
virtual void Setup() override¶
Resolve and bind
channel_fromconfig_["channel"]via the owning agent’sSimulation::GetChannel. OverridesDevice::Setup; logs a warning if no"channel"key is configured.
-
virtual void Send(Real t)¶
Notify the bound
channel_that this transponder is ready to send, without an explicit payload. Requireschannel_to be set (seeSetup). Same role asTransmitter::Send(Real).
-
virtual void Send(Real t, void *data)¶
Push
dataonto the boundchannel_at timet. Requireschannel_anddatato be non-null. Same role asTransmitter::Send(Real, void*).
-
virtual void Receive(Real t)¶
Request data from the bound
channel_at timet(callsChannel::Receive). Requireschannel_to be set.- Parameters:
t – Simulation time of the receive event [s]
-
virtual void Receive(Real t, void *data)¶
Append an incoming payload
data(provided bychannel_) todata_at timet. Requiresdatato be non-null. Same role asReceiver::Receive(Real, void*).
-
Transponder() = default¶