mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 12:41:35 +08:00
refactor replay: split timestamp offset into separate method
This commit is contained in:
@@ -112,6 +112,16 @@ protected:
|
||||
int publication_counter = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* Find the offset & field size in bytes for a given field name
|
||||
* @param format format string, as specified by ULog
|
||||
* @param field_name search for this field
|
||||
* @param offset returned offset
|
||||
* @param field_size returned field size
|
||||
* @return true if found, false otherwise
|
||||
*/
|
||||
static bool findFieldOffset(const std::string &format, const std::string &field_name, int &offset, int &field_size);
|
||||
|
||||
/**
|
||||
* publish an orb topic
|
||||
* @param sub
|
||||
|
||||
Reference in New Issue
Block a user