Similarly here :  if((current_angle + input_scan.angle_increment < lower_angle_) || (current_angle + input_scan.angle_increment > upper_angle_))