Skip to content

Commit

Permalink
feat: array HORI_ANGLE[] initialize 0 when RSLidar16
Browse files Browse the repository at this point in the history
  • Loading branch information
steelwu committed Sep 3, 2019
1 parent 761bb9e commit 47580ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rslidar_pointcloud/src/rawdata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ void RawData::loadConfigFile(ros::NodeHandle node, ros::NodeHandle private_nh)
VERT_ANGLE[loopn] = b[loopn] * 100;
HORI_ANGLE[loopn] = d[loopn] * 100;
}

if (numOfLasers == 16)
{
memset(HORI_ANGLE, 0, sizeof(HORI_ANGLE));
}

fclose(f_angle);
}

Expand Down

0 comments on commit 47580ce

Please sign in to comment.