From ef6f654f563992ac5a1bc1be9bd75142026833ce Mon Sep 17 00:00:00 2001 From: Yuki Furuta Date: Thu, 20 Jun 2019 12:39:45 +0900 Subject: [PATCH] apply https://github.com/Slamtec/rplidar_ros/pull/10 --- src/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cpp b/src/node.cpp index 4b12ea6b..81a53fd7 100644 --- a/src/node.cpp +++ b/src/node.cpp @@ -324,7 +324,7 @@ int main(int argc, char * argv[]) { //const int angle_compensate_multiple = 1; const int angle_compensate_nodes_count = 360*angle_compensate_multiple; int angle_compensate_offset = 0; - rplidar_response_measurement_node_hq_t angle_compensate_nodes[angle_compensate_nodes_count]; + rplidar_response_measurement_node_hq_t angle_compensate_nodes[angle_compensate_nodes_count+8]; memset(angle_compensate_nodes, 0, angle_compensate_nodes_count*sizeof(rplidar_response_measurement_node_hq_t)); int i = 0, j = 0;