logger: prepare for replay: add replayed file to the log, use _replayed as file name suffix

This commit is contained in:
Beat Küng
2016-06-02 07:32:49 +02:00
committed by Lorenz Meier
parent 069dd01cb0
commit 034772056a
2 changed files with 34 additions and 3 deletions
+8
View File
@@ -80,6 +80,13 @@ public:
~Logger();
/**
* Tell the logger that we're in replay mode. This must be called
* before starting the logger.
* @param file_name file name of the used log replay file. Will be copied.
*/
static void setReplayFile(const char *file_name);
/**
* Add a topic to be logged. This must be called before start_log()
* (because it does not write an ADD_LOGGED_MSG message).
@@ -211,6 +218,7 @@ private:
orb_advert_t _mavlink_log_pub = nullptr;
uint16_t _next_topic_id; ///< id of next subscribed topic
static char *_replay_file_name;
};
} //namespace logger