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

[modules] - addition of simple algorithm for divergence calculation #1262

Closed
wants to merge 6 commits into from

Conversation

guidoAI
Copy link
Contributor

@guidoAI guidoAI commented Jul 27, 2015

This branch adds a simple algorithm to determine optical flow divergence to the optical flow code in Paparazzi. It takes the optical flow vectors and evaluates how the distances between corners change over time. This allows to determine the divergence, which is 0 in hover, negative when going up and positive when going down.

The divergence can be used, e.g., for constant divergence landings, which permit safe landing on surfaces which are not at 0 altitude (roof top for instance).

Main change is the addition of size_divergence.c / h for the calculation of the divergence. The other modifications call the algorithm or pass its values on to the Paparazzi ground station.

@flixr
Copy link
Member

flixr commented Jul 27, 2015

Nice, can you please also add a copyright and doxgen header to size_divergence.c
and make sure that the files have a newline at the end?

@guidoAI
Copy link
Contributor Author

guidoAI commented Jul 28, 2015

Done.

*/

/**
* @file modules/computer_vision/opticflow/size_divergence.h
Copy link
Member

Choose a reason for hiding this comment

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

please correct the path to the file...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected

@flixr flixr closed this in e88118f Jul 29, 2015
@flixr flixr changed the title Pullrequestbranch - addition of simple algorithm for divergence calculation [modules] - addition of simple algorithm for divergence calculation Jul 29, 2015
@flixr flixr added the Module label Jul 29, 2015
@flixr flixr added this to the v5.6 milestone Jul 29, 2015
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.

None yet

2 participants