feat(libScePad): implement the angular velocity deadband #2306

Closed
flaxdmin199 wants to merge 1 commit from upstream-pr/2306 into main
flaxdmin199 commented 2026-10-09 15:11:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by flaxdmin199 on 2026-10-09T15:11:58Z.


What

Implement scePadSetAngularVelocityDeadbandState in libScePad. When enabled, angular velocity components below 0.01 rad/s are zeroed upon reading pad state.

Tested

Windows, libScePad regression test in GuestPad.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4802295821 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2306). Originally posted by [flaxdmin199](https://github.com/flaxdmin199) on 2026-10-09T15:11:58Z. --- ### What Implement scePadSetAngularVelocityDeadbandState in libScePad. When enabled, angular velocity components below 0.01 rad/s are zeroed upon reading pad state. ### Tested Windows, libScePad regression test in GuestPad. ### Checklist - [x] Based on current main; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation .md files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-09 15:29:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T15:29:44Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#2288 core/libs/prx/libScePad/Export.cpp L192
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6083996164 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2306#issuecomment-6083996164). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T15:29:44Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #2288 | `core/libs/prx/libScePad/Export.cpp` [L192](https://github.com/boykopovar/AnyPS5/blob/8b393b6e9a8ade9188d4f74a0293e0efd9828597/core/libs/prx/libScePad/Export.cpp#L192) | | |
popcoder565 commented 2026-10-09 19:03:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:03:38Z.


Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head c567a42a, merged onto main f8c2f072 in one build with 9 other PRs that had no Windows run.

  • This PR's tests pass: guest_pad.
  • Full ctest in that build: 512 of 513. The one failure is agc_driver_depth_fast_clear_submit from #2325, which fails intermittently on its own too. The test comes from #425, where I reported it.

No title was run.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6087417051 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2306#issuecomment-6087417051). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T19:03:38Z. --- Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head `c567a42a`, merged onto `main` f8c2f072 in one build with 9 other PRs that had no Windows run. - This PR's tests pass: `guest_pad`. - Full ctest in that build: 512 of 513. The one failure is `agc_driver_depth_fast_clear_submit` from #2325, which fails intermittently on its own too. The test comes from #425, where I reported it. No title was run. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
flaxdmin199 commented 2026-10-09 19:23:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by flaxdmin199 on 2026-10-09T19:23:48Z.


Overlaps #2288. This PR applies the deadband to the reported angular velocity instead of ignoring the flag, so the export does what it is supposed to rather than being a silent stub outside the UI. Windows run: see the comment above.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6087734108 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2306#issuecomment-6087734108). Originally posted by [flaxdmin199](https://github.com/flaxdmin199) on 2026-10-09T19:23:48Z. --- Overlaps #2288. This PR applies the deadband to the reported angular velocity instead of ignoring the flag, so the export does what it is supposed to rather than being a silent stub outside the UI. Windows run: see the comment above.
oneandonlydean commented 2026-10-09 20:11:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:11:35Z.


Closing: the 0.01 rad/s threshold is a guess, and no title is shown calling scePadSetAngularVelocityDeadbandState with true on main. Please reopen with the title ID, the log line and the console's threshold if you have them.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088465593 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2306#issuecomment-6088465593). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T20:11:35Z. --- Closing: the 0.01 rad/s threshold is a guess, and no title is shown calling `scePadSetAngularVelocityDeadbandState` with `true` on main. Please reopen with the title ID, the log line and the console's threshold if you have them.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!2306
No description provided.