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
Conversation
en/sensor/optical_flow.md
Outdated
|
||
## 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`). |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, makes sense!
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :-)
927f6b0
to
e4740b9
Compare
@hamishwillee does that work for you? |
Yes it does. Thanks! merged. |
Just came across this: '1' means GPS only. The second bit needs to be enabled for flow