Skip to content

Commit

Permalink
fix: the bug for dis_resolution_mode syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Zhang <hitxfd.tony@gmail.com>
  • Loading branch information
Tony-HIT committed Jan 31, 2019
1 parent 474bf84 commit 0d9f792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rslidar_pointcloud/src/rawdata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ void RawData::unpack(const rslidar_msgs::rslidarPacket& pkt, pcl::PointCloud<pcl
intensity = calibrateIntensity_old(intensity, dsr, distance);

float distance2 = pixelToDistance(distance, dsr);
if (dis_resolution_mode = 0) // distance resolution is 0.5cm
if (dis_resolution_mode == 0) // distance resolution is 0.5cm
{
distance2 = distance2 * DISTANCE_RESOLUTION_NEW;
}
Expand Down

0 comments on commit 0d9f792

Please sign in to comment.