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

Fixes PR #2475 #2478

Merged

Conversation

OpenUAS
Copy link
Contributor

@OpenUAS OpenUAS commented Dec 18, 2019

Made requested changes

@OpenUAS OpenUAS added conf Enhancement Improve upon exiting functionality Fixedwing Parrot Drones labels Dec 18, 2019
@OpenUAS OpenUAS added this to the v5.16 milestone Dec 18, 2019
dewagter
dewagter previously approved these changes Dec 19, 2019
Copy link
Member

@dewagter dewagter left a comment

Choose a reason for hiding this comment

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

This contains a lot of changes. They all look good to me, altough I do not understand why some lines had to be moved in the aka driver, and generally i prefer a few small pull requests: e.g. just the sonar correction, just the linux modules for bebop, etc in logical groups. And if it is important to set the dataready=true after the transmit, add some comment for the next person to change that code.

i2c_transceive(ak->i2c_p, &(ak->i2c_trans), ak->i2c_trans.slave_addr, 1, 1);
ak->data_available = true;

Choose a reason for hiding this comment

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

New data flag should only be set to true one time. If you keep it here and then request the status to either reset it to true or false, you might either read the data twice or read false values. Before, the error flag was just ignored, we can change that but if should be consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, thanks for looking into it. So I'll remove line 121 ( ak->data_available = true; ) is that correct what you request?

Copy link
Contributor Author

@OpenUAS OpenUAS Dec 19, 2019

Choose a reason for hiding this comment

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

CDW wrote:

This contains a lot of changes

Yeah, sorry, this comes since I set sub projects like e.g. "Make disco fly 100% using all useful sensor" then one comes across many issue, only flight testable often when multiple things are fixed. I'll see if in the future I'll can spit PR's. There are limited resources for PPRZ fixing and testflying things. This was Stage 2...

@OpenUAS OpenUAS self-assigned this Jan 24, 2020
@gautierhattenberger gautierhattenberger merged commit 9c4a980 into paparazzi:master Feb 4, 2020
@OpenUAS OpenUAS deleted the testfly_parrot_disco_phase2 branch December 20, 2020 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conf Enhancement Improve upon exiting functionality Fixedwing Parrot Drones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants