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

Navigation oval pullreq #1568

Closed
wants to merge 6 commits into from

Conversation

tcunis
Copy link

@tcunis tcunis commented Mar 22, 2016

So far, oval navigation as described in the wiki has been implemented for fixed-wing only. I have adapted the fixed-wing implementation and ported to rotorcraft as well. Unlike fixed-wing, the rotorcraft implementation uses binary fixed-point representation rather than floats.

@flixr
Copy link
Member

flixr commented Mar 22, 2016

Nice!
I think eventually we should convert all these navigation routines to modules, but it's ok like this for now I guess...

@@ -148,11 +148,16 @@ static void send_wp_moved(struct transport_tx *trans, struct link_device *dev)
static uint8_t i;
i++;
if (i >= nb_waypoint) { i = 0; }
struct EnuCoor_i wp_i;
Copy link
Member

Choose a reason for hiding this comment

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

What's up with those changes?
They don't seem to change anything functionally, just add some extra copying...

Copy link
Author

Choose a reason for hiding this comment

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

That's an artefact of the project I am actually working on, wherefore I needed to increase INT32_POS_FRAC. Then, this was to ensure the telemetry precision was still 8 bits as defined in messages.xml.

Choose a reason for hiding this comment

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

I understand why you have that, but I don't think it should appear in master. Would be nice if you remove it for now, and eventually add it back if you decide to make a pull request for the code that is actually using this.

@OpenUAS
Copy link
Contributor

OpenUAS commented Mar 22, 2016

@tcunis Nice, if a bit more discussed what would be the best way to add with PPRZ team, and in Lab... so almost there to merge 👍

@tcunis
Copy link
Author

tcunis commented Mar 23, 2016

I have included the changes as discussed so far (line-start / -stop, removed un-related macros etc.).

@flixr
Copy link
Member

flixr commented Mar 23, 2016

@gautierhattenberger you can merge it if it looks good to you...

@gautierhattenberger
Copy link
Member

merged with ab1249b (and c4d7283 to fix my own mistake, sorry)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants