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

Added speed to public api (get and monitor) #414

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

sroebert
Copy link
Contributor

Following #409, this PR makes the speed value of the desk public api. You can either:

  • Use get_speed to get the current speed
  • Use get_height_and_speed to get a tuple of both height and speed
  • Monitor with a callback with two parameters, height and speed

For backwards compatbility you can still monitor with a callback that only accepts one parameter, which just gets called for height changes.

@coveralls
Copy link

coveralls commented Feb 24, 2024

Coverage Status

coverage: 88.743% (+0.007%) from 88.736%
when pulling 29a5dd1 on sroebert:feature/speed
into e2416dd on newAM:main.

@sroebert sroebert force-pushed the feature/speed branch 2 times, most recently from 2a13995 to 4e27e02 Compare February 24, 2024 20:30
…or for height and speed, next to just height
@newAM newAM merged commit 56fbe64 into newAM:main Mar 5, 2024
20 checks passed
@newAM
Copy link
Owner

newAM commented Mar 5, 2024

Thanks for the feature!

This and #409 have are in v0.12.0

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.

3 participants