-
Notifications
You must be signed in to change notification settings - Fork 16.8k
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
AP_NavEKF2: support VISION_SPEED_ESTIMATE #9505
Conversation
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.
- Commit needs to be split to comply with 1 commit per library rule
- Please add comments, similar to the existing ones
af34fff
to
db16e7a
Compare
Thank you. I have changed it |
I think @chobitsfan has fixed the issue raised by @OXINARF so dismissing the review.
I think we need this rebased but more importantly it would be good to get @priseborough's opinion on whether this is the right way to do this. |
db16e7a
to
43ca284
Compare
@priseborough can you take a look at this ? |
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.
First pass review doesn't show any structural issues. However there is an issue with the use of the GPS velocity noise parameter to set the velocity observation noise variance.
The https://mavlink.io/en/messages/common.html#VISION_SPEED_ESTIMATE message provides a covariance matrix for the velocity vector so we should be taking the diagonals from that message and using them as the observation noise variance for each element.
Edit: Also I would like to inspect a log with this feature operating so can you please provide a link to a log
Hi @priseborough thank you There are 2 logs in zip file, copter fly with the same firmware. In one log, gcs do not send VISION_SPEED_ESTIMATE, in another log gcs send VISION_SPEED_ESTIMATE The covariance in VISION_SPEED_ESTIMATE is a MAVLink v2 only extension and not available in MAVLink v1. Maybe we can use EK2_VELNE_M_NSE if covariance is not available in the message? Just like EK2_POSNE_M_NSE also used for external navigation system position observation noise. |
This needs a rebase |
Would be great to get this rebased |
@amilcarlucas, I'm not sure it's great to ask the developer for a rebase unless someone is going to actively test and push it through the peer review (i.e. raise it on the dev call etc) to be sure it's merged. I think it could just be frustrating for the developer to rebase it but then have it ignored again. On the other hand, I think this PR is still important and I am getting closer to testing it and getting it merged.. but I'm probably still a week or two away from doing that. |
Thank you @amilcarlucas and @rmackay9 I am sorry that I am in middle of other matters and do not have time to rebase and test it right now. I will do it as soon as possible once my hand is free. Thank you |
43ca284
to
9de4886
Compare
I have rebase it and add a VISS log message to log VISION_SPEED_ESTMATE I add useVisVertVel flag instead of reuse useGpsVertVel flight log vis_speed_log.zip |
@chobitsfan, great, thanks for this. By the way, after this PR goes in, if you and other devs are happy with the approach I will likely merge the handling of this message into the AP_VisualOdom library. I've done this for the vision-position-estimate messages in this new PR: #13982 |
Of course @rmackay9 Thank you |
I just wanted to add that I haven't forgotten about this PR. We have a lot of EKF fixes and changes being made recently and although this hasn't gone in, it also hasn't been forgotten, it's just about ordering. |
Thank you @rmackay9 |
replaced by #14368 |
fix #4498
It enables EKF2 fuse speed from VISION_SPEED_ESTIMATE just like speed from GPS
GCS/companion computer can use VISION_SPEED_ESTIMATE to send their velocity estimate.
It makes copters loiter performance a little better when using external navigation data (VISION_POSITION_ESTIMATE or ATT_POS_MOCAP)
below is the observation of motion capture system
![vision_speed](https://user-images.githubusercontent.com/19793511/46394883-17ad1c00-c71d-11e8-8ac3-6c0d28e4bfac.jpg)