Skip to content

Commit

Permalink
针对YJ时间戳协议创建分支YJ
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanyiaini committed Oct 25, 2023
1 parent fdb7d1b commit 67a720a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project(ydlidar_sdk C CXX)
# version
set(YDLIDAR_SDK_VERSION_MAJOR 1)
set(YDLIDAR_SDK_VERSION_MINOR 1)
set(YDLIDAR_SDK_VERSION_PATCH 19)
set(YDLIDAR_SDK_VERSION_PATCH 20)
set(YDLIDAR_SDK_VERSION ${YDLIDAR_SDK_VERSION_MAJOR}.${YDLIDAR_SDK_VERSION_MINOR}.${YDLIDAR_SDK_VERSION_PATCH})

##########################################################
Expand Down
5 changes: 3 additions & 2 deletions core/base/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <assert.h>
#include <time.h>
#include <inttypes.h>
#include "utils.h"


#define BEGIN_STATIC_CODE( _blockname_ ) \
Expand Down Expand Up @@ -42,8 +43,8 @@ namespace impl {
#if defined(_WIN32)
void HPtimer_reset();
#endif
uint32_t getHDTimer();
uint64_t getCurrentTime();
YDLIDAR_API uint32_t getHDTimer();
YDLIDAR_API uint64_t getCurrentTime();
} // namespace impl


Expand Down
2 changes: 1 addition & 1 deletion samples/scl_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ int main(int argc, char *argv[])
{
if (laser.doProcessSimple(scan))
{
printf("Scan received [%llu] points stamp [0x%"PRIx64"]\n",
printf("Scan received [%llu] points stamp [%llu]\n",
scan.points.size(),
scan.stamp);
// for (size_t i = 0; i < scan.points.size(); ++i)
Expand Down
2 changes: 1 addition & 1 deletion src/YDlidarDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ bool YDlidarDriver::parseStampData(uint32_t timeout)
if (hasStamp)
{
memcpy(&stamp, globalRecvBuffer, size);
printf("SCL stamp: %llu 0x%"PRIx64"\n", stamp, stamp);
//printf("SCL stamp: %llu 0x%"PRIx64"\n", stamp, stamp);
}

return hasStamp;
Expand Down
2 changes: 1 addition & 1 deletion src/filters/NoiseFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct FilterBlock
int end_index;
};

class NoiseFilter : public FilterInterface
class YDLIDAR_API NoiseFilter : public FilterInterface
{
public:
enum FilterStrategy
Expand Down
2 changes: 1 addition & 1 deletion src/filters/StrongLightFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "FilterInterface.h"

//强光滤波器
class StrongLightFilter : public FilterInterface
class YDLIDAR_API StrongLightFilter : public FilterInterface
{
public:
StrongLightFilter();
Expand Down

0 comments on commit 67a720a

Please sign in to comment.