read topics to log from a text file

This commit is contained in:
Mark Whitehorn
2016-06-10 08:51:54 +02:00
committed by Beat Küng
parent f4f0892b25
commit f250911776
3 changed files with 82 additions and 22 deletions
+7
View File
@@ -186,6 +186,13 @@ private:
*/
bool get_log_time(struct tm *tt, bool boot_time = false);
/**
* Parse a file containing a list of uORB topics to log, calling add_topic for each
* @param fname name of file
* @return number of topics added
*/
int add_topics_from_file(const char *fname);
static constexpr size_t MAX_TOPICS_NUM = 64; /**< Maximum number of logged topics */
static constexpr unsigned MAX_NO_LOGFOLDER = 999; /**< Maximum number of log dirs */
static constexpr unsigned MAX_NO_LOGFILE = 999; /**< Maximum number of log files */