mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 10:03:35 +08:00
TransferReceiver error counter
This commit is contained in:
@@ -41,9 +41,12 @@ private:
|
||||
TransferID tid_;
|
||||
uint8_t iface_index_;
|
||||
uint8_t next_frame_index_;
|
||||
uint8_t error_cnt_;
|
||||
|
||||
bool isInitialized() const { return iface_index_ != IfaceIndexNotSet; }
|
||||
|
||||
void registerError();
|
||||
|
||||
TidRelation getTidRelation(const RxFrame& frame) const;
|
||||
|
||||
void updateTransferTimings();
|
||||
@@ -60,12 +63,15 @@ public:
|
||||
, buffer_write_pos_(0)
|
||||
, iface_index_(IfaceIndexNotSet)
|
||||
, next_frame_index_(0)
|
||||
, error_cnt_(0)
|
||||
{ }
|
||||
|
||||
bool isTimedOut(MonotonicTime current_ts) const;
|
||||
|
||||
ResultCode addFrame(const RxFrame& frame, TransferBufferAccessor& tba);
|
||||
|
||||
uint8_t yieldErrorCount();
|
||||
|
||||
MonotonicTime getLastTransferTimestampMonotonic() const { return prev_transfer_ts_; }
|
||||
UtcTime getLastTransferTimestampUtc() const { return first_frame_ts_; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user