Skip to content

Fix soft lock should work when the car is stationary as well #184#232

Open
google-labs-jules[bot] wants to merge 3 commits intomainfrom
fix-issue-184-softlock-menus-1833263049804993893
Open

Fix soft lock should work when the car is stationary as well #184#232
google-labs-jules[bot] wants to merge 3 commits intomainfrom
fix-issue-184-softlock-menus-1833263049804993893

Conversation

@google-labs-jules
Copy link
Contributor

This PR resolves Issue #184 by ensuring that steering Soft Lock remains active even when the game is paused or in menus.

Key changes:

  1. FFB Loop Update: Removed the if (!in_realtime) force = 0.0; override in main.cpp. The FFBEngine already correctly handles the !allowed state by muting all physics/vibration effects while preserving the Soft Lock force.
  2. Telemetry Heartbeat: Modified GameConnector to treat steering input changes as a "freshness" signal. This prevents telemetry from being marked as "stale" when simulation time is frozen (game paused), allowing the FFB loop to continue processing Soft Lock as the user moves the wheel.
  3. Safety: Preservation of full_allowed logic ensures that no other FFB effects (bumps, engine vibration, etc.) are active in menus, maintaining the intended safety fix for Issue if the ffb is interrupted(menu,or back to garage) the wheel keeps punching to left or right side and dont stop until u are back in the car #174.

Verified on Linux with mock Shared Memory and dedicated unit tests in tests/test_issue_184_softlock.cpp.


PR created automatically by Jules for task 1833263049804993893 started by @coasting-nc

- Removed explicit force zeroing in main.cpp when not in realtime.
- Enhanced GameConnector heartbeat to include steering input changes.
- Added comprehensive unit tests for Soft Lock preservation and heartbeat logic.
- Updated VERSION to 0.7.118 and added CHANGELOG entry.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

- Removed explicit force zeroing in main.cpp when not in realtime.
- Enhanced GameConnector heartbeat to include steering input changes.
- Reset heartbeat state on disconnect to ensure test isolation.
- Fixed unit test mock initialization for reliable heartbeat verification.
- Updated VERSION to 0.7.118 and synchronized CHANGELOG.
- Removed explicit force zeroing in main.cpp when not in realtime.
- Enhanced GameConnector heartbeat to include steering input changes.
- Reset heartbeat state on disconnect to ensure test isolation.
- Fixed unit test mock initialization and background thread interference.
- Updated VERSION to 0.7.118 and synchronized CHANGELOG.
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