mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:43:34 +08:00
logger: add support for mavlink backend in Logger class, handle start/stop
This commit is contained in:
@@ -160,6 +160,15 @@ private:
|
||||
|
||||
void stop_log_file();
|
||||
|
||||
void start_log_mavlink();
|
||||
|
||||
void stop_log_mavlink();
|
||||
|
||||
/** check if mavlink logging can be started */
|
||||
bool can_start_mavlink_log() const
|
||||
{
|
||||
return !_writer.is_started(LogWriter::BackendMavlink) && (_writer.backend() & LogWriter::BackendMavlink) != 0;
|
||||
}
|
||||
|
||||
/** get the configured backend as string */
|
||||
const char *configured_backend_mode() const;
|
||||
@@ -206,6 +215,8 @@ private:
|
||||
|
||||
void add_default_topics();
|
||||
|
||||
void ack_vehicle_command(orb_advert_t &vehicle_command_ack_pub, uint16_t command, uint32_t result);
|
||||
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user