logger: subscribe to mavlink_log messages and write them to the log

This commit is contained in:
Beat Küng
2016-06-02 07:32:49 +02:00
committed by Lorenz Meier
parent 659ac8faf2
commit 069dd01cb0
6 changed files with 67 additions and 19 deletions
+7
View File
@@ -164,6 +164,13 @@ private:
*/
bool write_wait(void *ptr, size_t size);
/**
* Write data to the logger and handle dropouts.
* Must be called with _writer.lock() held.
* @return true if data written, false otherwise (on overflow)
*/
bool write(void *ptr, size_t size);
/**
* Get the time for log file name
* @param tt returned time