Skip to content

Commit

Permalink
针对GS5修改型号识别
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanyiaini committed Jan 19, 2024
1 parent 3eb329a commit 3c40008
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 5 additions & 1 deletion core/common/ydlidar_help.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ inline std::string lidarModelToString(int model)
case DriverInterface::YDLIDAR_GS2:
name = "GS2";
break;
case DriverInterface::YDLIDAR_GS5:
name = "GS5";
break;
case DriverInterface::YDLIDAR_TG15:
name = "TG15";
break;
Expand Down Expand Up @@ -368,7 +371,8 @@ inline bool hasScanFrequencyCtrl(int model)
model == DriverInterface::YDLIDAR_S2 ||
model == DriverInterface::YDLIDAR_X4 ||
model == DriverInterface::YDLIDAR_GS1 ||
model == DriverInterface::YDLIDAR_GS2)
model == DriverInterface::YDLIDAR_GS2 ||
model == DriverInterface::YDLIDAR_GS5)
{
ret = false;
}
Expand Down
7 changes: 3 additions & 4 deletions examples/gs_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,9 @@ int main(int argc, char *argv[])
{
if (laser.doProcessSimple(scan))
{
// printf("[%llu] points in module num [%d] env flag [%f]\n",
// scan.points.size(),
// scan.moduleNum,
// scan.config.time_increment);
printf("Module [%d] [%d] points\n",
scan.moduleNum,
int(scan.points.size()));
// uint32_t t = getms();
// printf("module[%d] time[%lld]\n", scan.moduleNum, t - ts[scan.moduleNum]);
// ts[scan.moduleNum] = t;
Expand Down
3 changes: 0 additions & 3 deletions src/CYdLidar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1570,9 +1570,6 @@ void CYdLidar::checkSampleRate()
}
}

/*-------------------------------------------------------------
checkScanFrequency
-------------------------------------------------------------*/
bool CYdLidar::checkScanFrequency()
{
float frequency = 7.4f;
Expand Down

0 comments on commit 3c40008

Please sign in to comment.