Skip to content

Add resetting FSM state to fix premature load_game -> game_start transition - #17

Merged
Konstantysz merged 11 commits into
devfrom
feature/fsm-resetting-state
Mar 15, 2026
Merged

Add resetting FSM state to fix premature load_game -> game_start transition#17
Konstantysz merged 11 commits into
devfrom
feature/fsm-resetting-state

Conversation

@Konstantysz

@Konstantysz Konstantysz commented Mar 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds resetting state between pokemon_summary and load_game to correctly model the soft reset blackout
  • resetting detects dark top screen (V<50, ≥30% pixels) via color_histogram
  • load_game now detects white bottom screen (save file) instead of intensity_event, preventing premature transition on screen appearance
  • IntensityEventDetector drop threshold lowered 0.40 → 0.30 for improved sensitivity
  • Adds XYStarterFennekinLive integration test with full frame boundary assertions verified against live camera footage

Test plan

  • ctest --preset ninja-release -R XYStarterFennekin — both replay and live tests pass

@Konstantysz
Konstantysz merged commit cd25886 into dev Mar 15, 2026
1 check passed
@Konstantysz
Konstantysz deleted the feature/fsm-resetting-state branch March 15, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant