Buffers and validates monitoring frames for a scan round. More...
#include <scan_buffer.h>
Public Member Functions | |
void | add (const data_conversion_layer::monitoring_frame::MessageStamped &stamped_msg) |
Adds the message to the current scan round. More... | |
std::vector< data_conversion_layer::monitoring_frame::MessageStamped > | currentRound () |
bool | isRoundComplete () |
void | reset () |
Readies the validator for a new validation round. This function has to be called whenever there is an expected brake in the receiving of MonitoringFrames. More... | |
ScanBuffer (const uint32_t &num_expected_msgs) | |
Private Member Functions | |
void | startNewRound (const data_conversion_layer::monitoring_frame::MessageStamped &stamped_msg) |
Private Attributes | |
std::vector< data_conversion_layer::monitoring_frame::MessageStamped > | current_round_ {} |
bool | first_scan_round_ = true |
const uint32_t & | num_expected_msgs_ |
Buffers and validates monitoring frames for a scan round.
Discovers if there are to many monitoring frames in a scan round. Informs when a scan round ended incomplete. Discovers and omits old messages.
Definition at line 79 of file scan_buffer.h.
|
inline |
Definition at line 115 of file scan_buffer.h.
|
inline |
Adds the message to the current scan round.
stamped_msg | Current received MonitoringFrame. |
data_conversion_layer::monitoring_frame::AdditionalFieldMissing | if scan_counter is not set in stamped_msg.msg_. |
Definition at line 134 of file scan_buffer.h.
|
inline |
Definition at line 124 of file scan_buffer.h.
|
inline |
Definition at line 129 of file scan_buffer.h.
|
inline |
Readies the validator for a new validation round. This function has to be called whenever there is an expected brake in the receiving of MonitoringFrames.
Definition at line 119 of file scan_buffer.h.
|
inlineprivate |
Definition at line 154 of file scan_buffer.h.
|
private |
Definition at line 110 of file scan_buffer.h.
|
private |
Definition at line 112 of file scan_buffer.h.
|
private |
Definition at line 111 of file scan_buffer.h.