PX4 Firmware
PX4 Autopilot Software http://px4.io
mavlink_log_handler.cpp File Reference
#include "mavlink_log_handler.h"
#include "mavlink_main.h"
#include <sys/stat.h>
#include <time.h>
Include dependency graph for mavlink_log_handler.cpp:

Go to the source code of this file.

Macros

#define MOUNTPOINT   PX4_STORAGEDIR
 
#define PX4LOG_REGULAR_FILE   DT_REG
 
#define PX4LOG_DIRECTORY   DT_DIR
 
#define PX4LOG_WARN(fmt, ...)
 
#define MAX_BYTES_SEND   256 * 1024
 

Functions

static bool stat_file (const char *file, time_t *date=nullptr, uint32_t *size=nullptr)
 

Variables

static const char * kLogRoot = MOUNTPOINT "/log"
 
static const char * kLogData = MOUNTPOINT "/logdata.txt"
 
static const char * kTmpData = MOUNTPOINT "/$log$.txt"
 

Macro Definition Documentation

◆ MAX_BYTES_SEND

#define MAX_BYTES_SEND   256 * 1024

Referenced by MavlinkLogHandler::send().

◆ MOUNTPOINT

#define MOUNTPOINT   PX4_STORAGEDIR

Definition at line 42 of file mavlink_log_handler.cpp.

◆ PX4LOG_DIRECTORY

#define PX4LOG_DIRECTORY   DT_DIR

Definition at line 53 of file mavlink_log_handler.cpp.

Referenced by LogListHelper::_init(), and LogListHelper::delete_all().

◆ PX4LOG_REGULAR_FILE

#define PX4LOG_REGULAR_FILE   DT_REG

Definition at line 52 of file mavlink_log_handler.cpp.

Referenced by LogListHelper::_scan_logs(), and LogListHelper::delete_all().

◆ PX4LOG_WARN

Function Documentation

◆ stat_file()

static bool stat_file ( const char *  file,
time_t *  date = nullptr,
uint32_t *  size = nullptr 
)
static

Definition at line 66 of file mavlink_log_handler.cpp.

Referenced by LogListHelper::_get_log_time_size(), and LogListHelper::_get_session_date().

Here is the caller graph for this function:

Variable Documentation

◆ kLogData

const char* kLogData = MOUNTPOINT "/logdata.txt"
static

◆ kLogRoot

const char* kLogRoot = MOUNTPOINT "/log"
static

◆ kTmpData

const char* kTmpData = MOUNTPOINT "/$log$.txt"
static

Definition at line 46 of file mavlink_log_handler.cpp.

Referenced by LogListHelper::_init(), and LogListHelper::~LogListHelper().