|
ÉÏλ»ú´úÂëÔö¼Ólog·½·¨£º
ÔÚRTLSClient.cpp ÕÒµ½ÈçÏ´úÂë
- void RTLSClient::openLogFile(QString userfilename)
- {
- QDateTime now = QDateTime::currentDateTime();
- _logFilePath = "./Logs/"+now.toString("yyyyMMdd_hhmmss")+"RTLS_log.txt";
- _first = true;
¸´ÖÆ´úÂë
ÐÞ¸ÄΪ
- void RTLSClient::openLogFile(QString userfilename)
- {
- QDateTime now = QDateTime::currentDateTime();
- _logFilePath =now.toString("yyyyMMdd_hhmmss")+"RTLS_log.txt";
- _first = true;
¸´ÖÆ´úÂë
ÖØбàÒë¼´¿É
¶¨Î»½á¹û×ø±ê²¿·Ö´úÂëÈçÏÂ,¿ÉÒÔ¸ù¾Ý×Ô¼ºÐèÇóÖØж¨ÒåÊý¾Ý¸ñʽ:
- if(calculateTagLocation(&report, count, ra ) == TRIL_3SPHERES)
- {
- newposition = true;
- rp.numberOfLEs++;
- //log data to file
- if(_file)
- {
- QString s = nowstr + QString("LE:%1:%2:%3:[%4,%5,%6]:").arg(tid).arg(rp.numberOfLEs).arg(lastSeq).arg(report.x).arg(report.y).arg(report.z) +
- QString("%1:%2:%3:%4\n").arg(rp.rangeValue[lastSeq][0]).arg(rp.rangeValue[lastSeq][1]).arg(rp.rangeValue[lastSeq][2]).arg(rp.rangeValue[lastSeq][3]);
- QTextStream ts( _file );
- ts << s;
- }
¸´ÖÆ´úÂë
ÖØбàÒëºó£¬µã»÷log ²¿·ÖµÄstart¼´¿ÉÉú³ÉlogÎļþ
ÒѾ±àÒëºÃ£¬²Î¿¼ÈçÏÂ:
- Á´½Ó£ºhttps://pan.baidu.com/s/1U1HdWXB8rYYpHsiVaxAI6A
- ÌáÈ¡Â룺wugs
¸´ÖÆ´úÂë
|
|