-
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_NavEKF3: add source selection to allow switching between GPS and T265 #14803
Conversation
This is failing semaphore because the Matek405-wing has run out of space to fit the firmware. |
Actions for me:
|
f4140a9
to
ce16d6b
Compare
d90d748
to
a0e16e7
Compare
a0e16e7
to
1a7385e
Compare
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.
This is conflicting horribly already.
5fe2573
to
5c057b7
Compare
Is there a way for an offboard computer to make this switch? Or maybe a way to make it compare GPS to VIO confidence and have it automatically swap? |
also integrate useVelZSource
switches automatically between gps, external nav and optical flow
if we get to this point we must be using the compass fallback logic, and should do the reset
MAG_CAL param description include deprecated values Pre-arm check of MAG_CAL using deprecated values effective_magCal interprets 5 (was EXTERNAL_YAW) as Never, 6 (was EXTERNAL_YAW_FALLBACK) as WhenFlying Update comments in param conversion from MAG_CAL to EK3_SRC1_YAW
4dd5b57
to
79d0043
Compare
shorten param conversion config error if gps and optical flow are enabled we default SRC2_VELXY to optflow convert_params run from InitialiseFilter ensure param conversion only run once
79d0043
to
cb8830c
Compare
Thanks for all the feedback and reviews, merged! |
yay! |
This PR adds support for manually switching the EKF3 between sensors sources used for position, velocity and yaw. It also includes a lua script to automatically switch between GPS and NonGPS sources.
This PR also includes a couple of additional, mostly unrelated fixes:
This has been tested in SITL and on a real vehicle. I've put the logs for two tests below:
To test using GPS + Vicon in SITL the following parameters should be set:
Then start SITL from the ArduCopter directory with this command
To switch between sources:
To add offsets in position and orientation to the SITL vehicle:
These are the known issues and questions:
This is the additional testing we should do before merging:
All feedback is greatly appreciated!