PX4 Firmware
PX4 Autopilot Software http://px4.io
util.cpp File Reference
#include "util.h"
#include <dirent.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <uORB/Subscription.hpp>
#include <uORB/topics/vehicle_gps_position.h>
#include <drivers/drv_hrt.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/time.h>
#include <systemlib/mavlink_log.h>
#include <sys/statfs.h>
Include dependency graph for util.cpp:

Go to the source code of this file.

Namespaces

 px4
 
 px4::logger
 
 px4::logger::util
 

Macros

#define GPS_EPOCH_SECS   ((time_t)1234567890ULL)
 

Functions

bool px4::logger::util::file_exist (const char *filename)
 check if a file exists More...
 
bool px4::logger::util::get_log_time (struct tm *tt, int utc_offset_sec=0, bool boot_time=false)
 Get the time for log file name. More...
 
int px4::logger::util::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. More...
 
int px4::logger::util::remove_directory (const char *dir)
 Recursively remove a directory. More...
 

Variables

decltype(statfs::f_bavail) typedef px4_statfs_buf_f_bavail_t
 

Macro Definition Documentation

◆ GPS_EPOCH_SECS

#define GPS_EPOCH_SECS   ((time_t)1234567890ULL)

Definition at line 57 of file util.cpp.

Referenced by px4::logger::util::get_log_time().

Variable Documentation

◆ px4_statfs_buf_f_bavail_t

decltype(statfs::f_bavail) typedef px4_statfs_buf_f_bavail_t

Definition at line 59 of file util.cpp.

Referenced by px4::logger::util::check_free_space().