Skip to content

Commit de3527d

Browse files
committed
add check for y-position of searcher
1 parent 02c6125 commit de3527d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/control/src/behavior/search.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ pub fn execute(
113113
.duration_since(last_time_role_changed)
114114
.expect("time went backwards")
115115
< Duration::from_secs_f32(estimated_ball_arrival_time)
116+
&& ground_to_field.as_pose().position().y().abs() < field_dimensions.penalty_area_width / 2.0
116117
{
117118
return Some(MotionCommand::Stand { head });
118119
};

0 commit comments

Comments
 (0)