42 #define LOG_DIR_LEN 64 44 #define LOG_DIR_LEN 256 85 bool get_log_time(
struct tm *tt,
int utc_offset_sec = 0,
bool boot_time =
false);
static orb_advert_t * mavlink_log_pub
API for the uORB lightweight object broker.
bool get_log_time(struct tm *tt, int utc_offset_sec, bool boot_time)
Get the time for log file name.
int remove_directory(const char *dir)
Recursively remove a directory.
__BEGIN_DECLS typedef void * orb_advert_t
ORB topic advertiser handle.
int check_free_space(const char *log_root_dir, int32_t max_log_dirs_to_keep, orb_advert_t &mavlink_log_pub, int &sess_dir_index)
Check if there is enough free space left on the SD Card.
bool file_exist(const char *filename)
check if a file exists