Skip to content

Commit

Permalink
fix: RS16 packet rate calc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
steelwu committed May 15, 2019
1 parent ec7c70c commit 6caeb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rslidar_driver/src/rsdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ bool rslidarDriver::poll(void)
{
int packets_rate = ceil(POINTS_ONE_CHANNEL_PER_SECOND/BLOCKS_ONE_CHANNEL_PER_PKT);
int mode = difop_input_->getReturnMode();
if (config_.model == "RS16" && (mode == 1))
if (config_.model == "RS16" && (mode == 1 || mode == 2))
{
packets_rate = ceil(packets_rate/2);
}
Expand Down

0 comments on commit 6caeb2d

Please sign in to comment.