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

Change time functions #357

Merged
merged 2 commits into from
Jan 22, 2025
Merged

Change time functions #357

merged 2 commits into from
Jan 22, 2025

Conversation

jimmy-mcelwain
Copy link
Collaborator

@jimmy-mcelwain jimmy-mcelwain commented Jan 22, 2025

Ros_Duration_Msg_To_Millis was previously broken because the calculation would have a 32 bit result that would overflow before being cast. We just never ran into that problem because most durations are relatively short and there is no real chance of overflow unless a duration is at least several weeks long (which is obviously unlikely). I only realized that it was broken because I was trying to write Ros_Time_Msg_To_Millis by copying the contents of Ros_Duration_Msg_To_Millis and it was overflowing there.

I added more of the time message functions, because it will be useful for issues that may be completed in the future, (#29, #51, possibly others).

@ted-miller ted-miller added this to the 0.2.0 milestone Jan 22, 2025
@ted-miller ted-miller merged commit 19b9838 into main Jan 22, 2025
14 checks passed
@ted-miller ted-miller deleted the ChangeTimeFunctions branch January 22, 2025 19:01
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.

2 participants