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

mcap-play: Play at wall speed #631

Merged
merged 4 commits into from
Jan 18, 2024
Merged

Conversation

amacneil
Copy link
Contributor

@amacneil amacneil commented Dec 23, 2023

Public-Facing Changes

mcap-play now attempts to play messages using log_time against the wall clock. Previously it was playing messages as fast as possible regardless of the log_time between messages.

@defunctzombie defunctzombie marked this pull request as ready for review January 16, 2024 19:59
@defunctzombie
Copy link
Contributor

defunctzombie commented Jan 16, 2024

@jtbandes I've incorporated the rate setting back into this PR. In my testing I was confused because the messages are following the desired rate but since we don't use this setting to control the "clock" time in studio, it was still updating my fixed-window plots at wall time.

I think this is good to go in its current form. We can do a separate PR for clock support.

Copy link
Member

@jtbandes jtbandes left a comment

Choose a reason for hiding this comment

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

Variable names could use some clarity on what units they are in (e.g. elapsedMessageTimeMs)

@defunctzombie defunctzombie merged commit ce0b384 into main Jan 18, 2024
12 checks passed
@defunctzombie defunctzombie deleted the adrian/play-more-accurate branch January 18, 2024 01:34
jtbandes added a commit that referenced this pull request Jan 31, 2024
### Public-Facing Changes

Fixed: `mcap-play` now plays at the correct speed instead of sending
messages as fast as possible (#631)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants