1、运动到指定点,JOG运动,运动结束的判断

2、优化测试用例
This commit is contained in:
zhengxuan.zhang
2022-10-19 20:20:52 +08:00
parent 3473b1d637
commit df5c6c7c3f
12 changed files with 958 additions and 745 deletions
+18 -5
View File
@@ -10,12 +10,18 @@
#include <stdio.h>
#include <stdarg.h>
using namespace std;
using namespace std;
const long LOGINIT = 0x0001;
const long LOGACTIONS = 0x0002;
const long LOGCOMM = 0x0004;
const long LOGFLUSH = 0x0008;
extern string ConvertCharToString(char* a, int size);
extern void DelFiles(string path);
extern string ByteArrayToString(byte byteArray[]);
class CLogger
{
public:
@@ -37,6 +43,13 @@ public:
tmpPath.Empty();
Path = tmpPath;
}
else //文件夹不为空
{
TRACE0("Log File Path: \n", CStringA());
//DelFiles(CT2A(m_Name.GetString()));
}
m_FileName = Path + m_Name; //_T("\\SO7_SSILog.txt");
m_lLogMask = 0;
InitializeCriticalSection(&m_lockLogger);
@@ -53,8 +66,8 @@ public:
void SendAndFlush(LPCTSTR, ...);
void SendAndFlushPerMode(LPCTSTR, ...);
void SendAndFlushWithTime(LPCTSTR, ...);
void DeleteOldFile();
bool IsEnabledLog/* = false*/; //是否启用日志
CString m_FileName;
@@ -62,8 +75,8 @@ public:
FILE* m_File;
_TCHAR m_Str[20000];
_TCHAR m_Str2[20000];
CRITICAL_SECTION m_lockLogger;
CRITICAL_SECTION m_lockLogger;//临界区
};
extern string convertToString(char* a, int size);
#endif // !defined(LOGGER_H__5142BB38_5565_4124_88A4_56EA08298154__INCLUDED_)