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

✨Adds smoothing to amp-orientation-observer #24606

Merged
merged 5 commits into from Sep 30, 2019

Conversation

wassgha
Copy link
Contributor

@wassgha wassgha commented Sep 18, 2019

Closes #19326 , Closes #24400

Changes

  • Adds a configurable smoothing of the alpha/beta/gamma values (the configurable value is the subset size used to generate the moving average)
  • Dynamically reads the rest values of alpha/beta/gamma instead of defaulting to 0
  • Clamps the values to the provided ranges
  • Adds the required validator tests

@Gregable
Copy link
Member

Other than my one optional comment/question, validator changes LGTM.

Copy link
Member

@twifkak twifkak left a comment

Choose a reason for hiding this comment

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

Sorry for the delay! LGTM modulo one suggestion.

@amp-owners-bot
Copy link

Hey @ampproject/wg-caching, these files were changed:

  • extensions/amp-orientation-observer/0.1/test/validator-amp-orientation-observer.html
  • extensions/amp-orientation-observer/0.1/test/validator-amp-orientation-observer.out
  • extensions/amp-orientation-observer/validator-amp-orientation-observer.protoascii

@wassgha wassgha merged commit c543dd9 into ampproject:master Sep 30, 2019
@wassgha wassgha deleted the smoothing-amp-orientation branch September 30, 2019 16:35
amaltas added a commit that referenced this pull request Oct 2, 2019
* cl/272111029 Replace some assert.fail calls with goog.assert.fail.

* cl/272139712 Revision bump for #24606

* cl/272281163 Revision bump for #24572

* cl/272290443 Revision bump for #24839
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants