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

optical flow: fix doc on how to enable flow with ekf2 #320

Merged
merged 1 commit into from Aug 16, 2018

Conversation

ChristophTobler
Copy link
Contributor

Just came across this: '1' means GPS only. The second bit needs to be enabled for flow


## Estimators

### Extended Kalman Filter (EKF2)

For Optical Flow fusion using EKF2, the parameter [EKF2_AID_MASK](../advanced_config/parameter_reference.md#EKF2_AID_MASK) must be set to `1`.
For Optical Flow fusion using EKF2, the second bit of the parameter [EKF2_AID_MASK](../advanced_config/parameter_reference.md#EKF2_AID_MASK) must be enabled (e.g. flow only -> `2`).
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ChristophTobler Thanks. It is definitely more correct to refer to "bits enabled" rather than a numerical value. Do people tend to index bitmaps from 1 (or zero)?

Perhaps the last bit might be better as (i.e. to enable just flow the decimal value would be 2).

Copy link
Member

Choose a reason for hiding this comment

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

I think it's a bad idea to say bits/numbers in user-facing docs, since QGC exposes either check-boxes or a drop-down list with strings, which are in no way shown to be correlated with these numbers.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@mhkabir Good point. I was going to argue that the information about bits is also useful for people working with the parameter via a developer API, but then they will know to follow the link to the parameter.

How about we add a screenshot. So something like:

For optical flow fusion using EKF2, set the use optical flow flag in the EKF2_AID_MASK parameter, as shown using QGroundControl below:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, makes sense!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great :-). Are you set up with gitbook enough to do this - or do you want me to look at it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mh why gitbook? can I not just add the pic and link it to the md file?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I only ever use git to add images. If you're able via some other tool - ie the gitbook editor, be my guest :-)

@ChristophTobler
Copy link
Contributor Author

@hamishwillee does that work for you?

@hamishwillee hamishwillee merged commit a34621f into master Aug 16, 2018
@hamishwillee hamishwillee deleted the pr-fix_flow_param branch August 16, 2018 11:28
@hamishwillee
Copy link
Collaborator

Yes it does. Thanks! merged.

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.

None yet

3 participants