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 (#1335)
  • Loading branch information
MeiiMoon authored Jul 19, 2024
1 parent 7bc82a6 commit 1646877
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 @@ -166,7 +166,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 1646877

Please sign in to comment.