Mavlink set last sent timestamp to space out initial publication

- remove QURT defines no longer required
This commit is contained in:
Daniel Agar
2018-06-09 13:38:44 +02:00
committed by Lorenz Meier
parent 98465171aa
commit a99f75dde2
16 changed files with 75 additions and 133 deletions
+6 -6
View File
@@ -172,10 +172,10 @@ private:
uint8_t stream_target_system_id;
unsigned stream_chunk_transmitted;
};
struct SessionInfo _session_info; ///< Session info, fd=-1 for no active session
struct SessionInfo _session_info {}; ///< Session info, fd=-1 for no active session
ReceiveMessageFunc_t _utRcvMsgFunc; ///< Unit test override for mavlink message sending
void *_worker_data; ///< Additional parameter to _utRcvMsgFunc;
ReceiveMessageFunc_t _utRcvMsgFunc{}; ///< Unit test override for mavlink message sending
void *_worker_data{nullptr}; ///< Additional parameter to _utRcvMsgFunc;
Mavlink *_mavlink;
@@ -184,11 +184,11 @@ private:
MavlinkFTP operator=(const MavlinkFTP &);
/* work buffers: they're allocated as soon as we get the first request (lazy, since FTP is rarely used) */
char *_work_buffer1;
char *_work_buffer1{nullptr};
static constexpr int _work_buffer1_len = kMaxDataLength;
char *_work_buffer2;
char *_work_buffer2{nullptr};
static constexpr int _work_buffer2_len = 256;
hrt_abstime _last_work_buffer_access; ///< timestamp when the buffers were last accessed
hrt_abstime _last_work_buffer_access{0}; ///< timestamp when the buffers were last accessed
// prepend a root directory to each file/dir access to avoid enumerating the full FS tree (e.g. on Linux).
// Note that requests can still fall outside of the root dir by using ../..