Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMCL-0000: sync recentering with matching times #948

Merged
merged 3 commits into from Mar 27, 2024

Conversation

glabute
Copy link
Collaborator

@glabute glabute commented Mar 11, 2024

Purpose of this PR

Axis recentering happens independently on axes with differing recentering tmes, so that input on one axis does not impact the recentering state of the others.

note: This should be backported to 3.0 branch - done

Testing status

  • Added an automated test
  • Passed all automated tests
  • Manually tested

@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 26.81%. Comparing base (16da455) to head (0731661).
Report is 3 commits behind head on main.

❗ Current head 0731661 differs from pull request most recent head aea8e51. Consider uploading reports for the commit aea8e51 to get more accurate results

Files Patch % Lines
...nemachine/Runtime/Components/CinemachinePanTilt.cs 0.00% 9 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #948   +/-   ##
=======================================
  Coverage   26.80%   26.81%           
=======================================
  Files         250      250           
  Lines       27791    27804   +13     
=======================================
+ Hits         7449     7455    +6     
- Misses      20342    20349    +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

PanAxis.UpdateRecentering(deltaTime, PanAxis.TrackValueChange());
TiltAxis.UpdateRecentering(deltaTime, TiltAxis.TrackValueChange());
var gotInputX = PanAxis.TrackValueChange();
var gotInputY = TiltAxis.TrackValueChange();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens with the radial axis?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no radial axis in PanTilt

Copy link
Collaborator

@AntoineCharton AntoineCharton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing looks good. On the code not sure why only 2 axis are tracked?

@glabute glabute merged commit 0f6184f into main Mar 27, 2024
7 of 9 checks passed
@glabute glabute deleted the dev/sync-recentering-with-matching-times branch March 27, 2024 11:06
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.

None yet

3 participants