18 #include <SDKDDKVer.h>
20 #include <boost/asio.hpp>
22 #include <boost/asio.hpp>
57 [[nodiscard]] std::string
type()
const override;
60 [[nodiscard]]
static std::string
category();
92 std::array<char, _maxLength>
_data{};
The class is responsible for all time-related tasks.
Imu(const Imu &)=delete
Copy constructor.
std::thread _testThread
Thread for receiver fct.
std::string type() const override
String representation of the Class Type.
void deinitialize() override
Deinitialize the node.
bool initialize() override
Initialize the node.
void guiConfig() override
ImGui config window which is shown on double click.
boost::asio::ip::udp::endpoint _senderEndpoint
Boost udp endpoint.
SkydelNetworkStream & operator=(SkydelNetworkStream &&)=delete
Move assignment operator.
int _startCounter
Counter for packages that are skipped until data rate is shown.
bool resetNode() override
Resets the node. It is guaranteed that the node is initialized when this is called.
SkydelNetworkStream(SkydelNetworkStream &&)=delete
Move constructor.
SkydelNetworkStream & operator=(const SkydelNetworkStream &)=delete
Copy assignment operator.
static constexpr size_t OUTPUT_PORT_INDEX_IMU_OBS
Port number of the Skydel-ImuObs output.
static constexpr size_t OUTPUT_PORT_INDEX_GNSS_OBS
Port number of the Skydel-GnssObs output.
bool _isStartup
Startup handler: used in 'initialize()' to differentiate between startup and re-initialization.
int _packageCount
Counter for received packages.
static std::string category()
String representation of the Class Category.
bool _stop
Stop handler: once true, the asynchronous receive function stops.
static std::string typeStatic()
String representation of the Class Type.
~SkydelNetworkStream() override
Destructor.
boost::asio::io_context _ioservice
Asynchronous receive fct.
std::array< char, _maxLength > _data
Network data stream array.
uint64_t _lastMessageTime
Stores the time of the last received message.
SkydelNetworkStream()
Default constructor.
boost::asio::ip::udp::socket _socket
Boost udp socket.
SkydelNetworkStream(const SkydelNetworkStream &)=delete
Copy constructor.
std::chrono::steady_clock::time_point _startPoint
Time point where the first package has been received.
double _dataRate
Data rate of the received network stream [Hz].
static constexpr unsigned int _maxLength
Network data stream buffer size (boost::asio)
void do_receive()
Receive Skydel network stream data.