diff --git a/src/sensors/data_source_ball.cpp b/src/sensors/data_source_ball.cpp index 888a9c6..a568e3c 100644 --- a/src/sensors/data_source_ball.cpp +++ b/src/sensors/data_source_ball.cpp @@ -45,7 +45,7 @@ void DataSourceBall :: postProcess(){ distance = ballDist_str.toInt(); // Invalid data if out of parameters - if(angle < 0 || angle >= 360 || distance < 0 || distance > 250) valid_data = false; + if(angle < 0 || angle >= 360 || distance < 0 || distance > 255) valid_data = false; } }