Skip to content

Commit

Permalink
Update crates/control/src/referee_pose_detection_filter.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Schuler <[email protected]>
  • Loading branch information
2 people authored and phillip kammradt committed Aug 7, 2024
1 parent 4548d01 commit 4a1d0f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/control/src/referee_pose_detection_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ impl RefereePoseDetectionFilter {
self.update(&context)?;

let is_standby = matches!(
context.game_controller_state.unwrap().game_state,
GameState::Standby
context.game_controller_state,
Some(GameControllerState {
game_state: GameState::Standby,
..
})
);
if !is_standby {
self.detection_times = Default::default();
Expand Down

0 comments on commit 4a1d0f7

Please sign in to comment.