mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 06:01:37 +08:00
Mavlink set last sent timestamp to space out initial publication
- remove QURT defines no longer required
This commit is contained in:
committed by
Lorenz Meier
parent
98465171aa
commit
a99f75dde2
@@ -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 ../..
|
||||
|
||||
Reference in New Issue
Block a user