ball: correctly detect when the ball is not present

pull/1/head
EmaMaker 2021-06-26 10:04:00 +02:00
parent b3dbc4e213
commit c3d73935a6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}