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

Fix vehicle flight time #12448

Merged
merged 1 commit into from
Jul 10, 2019
Merged

Fix vehicle flight time #12448

merged 1 commit into from
Jul 10, 2019

Conversation

bkueng
Copy link
Member

@bkueng bkueng commented Jul 9, 2019

_param_total_flight_time_low.get() is an int32_t and gets sign-extended if cast directly to uint64_t. To avoid that we first cast to uint32_t.

`_param_total_flight_time_low.get()` is an int32_t and gets sign-extended
if cast directly to uint64_t. To avoid that we first cast to uint32_t.
@bkueng bkueng requested a review from mcsauder July 9, 2019 20:12
@dagar
Copy link
Member

dagar commented Jul 9, 2019

So flight time will be bogus for anyone that flew master since June 5th? faa3c3d#diff-1fd2cab203a1ba1c362f2dd76a74542f

@dagar dagar added the bug label Jul 9, 2019
@mcsauder
Copy link
Contributor

mcsauder commented Jul 9, 2019

So flight time will be bogus for anyone that flew master since June 5th? faa3c3d#diff-1fd2cab203a1ba1c362f2dd76a74542f

@bkueng is obviously right in this PR. @dagar, I did check the total flight time values in the logs I posted in that PR and they appear correct.

@dagar dagar merged commit aa86bf5 into master Jul 10, 2019
@dagar dagar deleted the flight_time_fix branch July 10, 2019 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants