29 #define IS_LOG_FILE_PREFIX "LOG_SN" 30 #define IS_LOG_FILE_PREFIX_LENGTH 6 31 #define IS_LOG_TIMESTAMP_LENGTH 15 40 virtual void InitDeviceForWriting(
int pHandle,
string timestamp,
string directory, uint64_t maxDiskSpace, uint32_t maxFileSize);
41 virtual void InitDeviceForReading();
42 virtual bool CloseAllFiles();
43 virtual bool OpenWithSystemApp();
44 virtual bool SaveData(
p_data_hdr_t *dataHdr,
const uint8_t* dataBuf);
46 virtual void SetSerialNumber(uint32_t serialNumber) = 0;
47 virtual string LogFileExtention() = 0;
49 bool SetupReadInfo(
const string& directory,
const string& deviceName,
const string&
timeStamp);
55 void SetKmlConfig(
bool showTracks =
true,
bool showPoints =
true,
bool showPointTimestamps =
true,
double pointUpdatePeriodSec=1.0,
bool altClampToGround=
true)
57 m_showTracks = showTracks;
58 m_showPoints = showPoints;
59 m_showPointTimestamps = showPointTimestamps;
60 m_pointUpdatePeriodSec = pointUpdatePeriodSec;
61 m_altClampToGround = altClampToGround;
65 bool OpenNewSaveFile();
66 bool OpenNextReadFile();
67 string GetNewFileName(uint32_t serialNumber, uint32_t fileCount,
const char* suffix);
92 #endif // DEVICE_LOG_H
ros::Time * timeStamp(M &m)
void SetKmlConfig(bool showTracks=true, bool showPoints=true, bool showPointTimestamps=true, double pointUpdatePeriodSec=1.0, bool altClampToGround=true)
const dev_info_t * GetDeviceInfo()
bool m_showPointTimestamps
USBInterfaceDescriptor data
double m_pointUpdatePeriodSec
vector< string > m_fileNames