|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Fake elodin-db that REFUSES the first subscription, the way the real one does when the calibrated VTable does not exist yet. More...
Public Member Functions | |
| void | start (std::vector< uint8_t > blob, int publishAfterSubscribes) |
| void | stop () |
Public Attributes | |
| std::thread | th |
| std::atomic< bool > | run {true} |
| std::atomic< uint16_t > | port {0} |
| std::atomic< int > | subscribes {0} |
Fake elodin-db that REFUSES the first subscription, the way the real one does when the calibrated VTable does not exist yet.
It says nothing back — which is the whole problem: a refusal is invisible to the C++ client, which sends request id 0 and never reads a reply. Data is published only once a RE-subscribe arrives, so this passes if and only if PressureFeed asks again.
Definition at line 129 of file test_pressure_feed.cpp.
|
inline |
Definition at line 135 of file test_pressure_feed.cpp.
References a, port, subscribes, and th.
Referenced by main().
|
inline |
| std::atomic<uint16_t> FakeDbRefuseFirst::port {0} |
Definition at line 132 of file test_pressure_feed.cpp.
Referenced by calibration_server.ElodinWriter::connect(), main(), calibration_orchestrator.UDPSensorReceiver::run(), combined_fsw_gui.UDPReceiver::run(), imu_calibration_gui.UDPReceiver::run(), and start().
| std::atomic<bool> FakeDbRefuseFirst::run {true} |
Definition at line 131 of file test_pressure_feed.cpp.
| std::atomic<int> FakeDbRefuseFirst::subscribes {0} |
Definition at line 133 of file test_pressure_feed.cpp.
| std::thread FakeDbRefuseFirst::th |
Definition at line 130 of file test_pressure_feed.cpp.