feat(libScePad): implement scePadSetAngularVelocityBiasCorrectionState #1672

Closed
camezaro-intc wants to merge 1 commit from upstream-pr/1672 into main
camezaro-intc commented 2026-10-08 16:10:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by camezaro-intc on 2026-10-08T16:10:05Z.


What

Implements scePadSetAngularVelocityBiasCorrectionState in libScePad and exposes gyro zero-rate drift bias compensation control in the complementary sensor fusion filter.

  • Validates handle == PAD_HANDLE, returning PAD_ERROR_INVALID_HANDLE otherwise.
  • Toggles angular velocity bias correction in PadState: when disabled, halts integration of drift bias in use() and clears accumulated bias integrals; when enabled, resumes integrating angular velocity drift correction.
  • Updates GuestPad test suite verifying invalid handle rejection and state toggles.
  • Updates entry in TechnicalDebt.md.

Tested

  • Windows 11 x64, GCC 15.2.0 (MinGW64)
  • Built guest_pad_tests and ran CTest guest_pad (100% passed)
  • Validated with ools/check_test_registration.py (all tests registered)
  • Validated with ools/check_conventions.py --base upstream/main (passed with 0 findings)

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:4789608942 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1672). Originally posted by [camezaro-intc](https://github.com/camezaro-intc) on 2026-10-08T16:10:05Z. --- ### What Implements scePadSetAngularVelocityBiasCorrectionState in libScePad and exposes gyro zero-rate drift bias compensation control in the complementary sensor fusion filter. - Validates handle == PAD_HANDLE, returning PAD_ERROR_INVALID_HANDLE otherwise. - Toggles angular velocity bias correction in PadState: when disabled, halts integration of drift bias in use() and clears accumulated bias integrals; when enabled, resumes integrating angular velocity drift correction. - Updates GuestPad test suite verifying invalid handle rejection and state toggles. - Updates entry in TechnicalDebt.md. ### Tested - Windows 11 x64, GCC 15.2.0 (MinGW64) - Built guest_pad_tests and ran CTest guest_pad (100% passed) - Validated with ools/check_test_registration.py (all tests registered) - Validated with ools/check_conventions.py --base upstream/main (passed with 0 findings) ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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-08 16:21:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T16:21:53Z.


Progress report (4b005b2 → d1e33e1)

📈 System libraries: 84.79% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libScePad scePadSetAngularVelocityBiasCorrectionState
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6064279771 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1672#issuecomment-6064279771). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T16:21:53Z. --- <!-- progress-report --> ### Progress report (4b005b2 → d1e33e1) 📈 **System libraries**: 84.79% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libScePad | `scePadSetAngularVelocityBiasCorrectionState` | </details>
oneandonlydean commented 2026-10-09 08:55:11 +00:00 (Migrated from github.com)

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


Closing for the same reason as #1657: PPSA16064 only imports scePadSetAngularVelocityBiasCorrectionState and never calls it, and the signature here is inferred from the neighbouring calls. Reopen when a title calls it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077711513 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1672#issuecomment-6077711513). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:55:11Z. --- Closing for the same reason as #1657: PPSA16064 only imports `scePadSetAngularVelocityBiasCorrectionState` and never calls it, and the signature here is inferred from the neighbouring calls. Reopen when a title calls it.

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!1672
No description provided.