Skip to content

Commit

Permalink
Add PrimaryState Initial to the state transitions between Standby to …
Browse files Browse the repository at this point in the history
…Ready
  • Loading branch information
MeiiMoon committed Jul 18, 2024
1 parent 8fd5b5f commit e2b371f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/control/src/localization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl Localization {
penalty: &Option<Penalty>,
) {
match (self.last_primary_state, primary_state, game_phase) {
(PrimaryState::Standby, PrimaryState::Ready, _) => {
(PrimaryState::Standby | PrimaryState::Initial, PrimaryState::Ready, _) => {
let initial_pose = generate_initial_pose(
&context.initial_poses[*context.player_number],
context.field_dimensions,
Expand Down

0 comments on commit e2b371f

Please sign in to comment.