Add ability to enable/disable the extended kalman filter (EKF)#2600
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2600 +/- ##
=========================================
Coverage 29.04% 29.04%
Complexity 1063 1063
=========================================
Files 281 281
Lines 10831 10831
Branches 878 878
=========================================
Hits 3146 3146
Misses 7342 7342
Partials 343 343 |
LukasPaczos
left a comment
There was a problem hiding this comment.
Going forward we should come up with a strategy for mutable options. Should everything exposed in NavigationOptions be mutable? We could possibly be able to reset all available there options and pass them to interested modules with a setter.
19145e3 to
eb23748
Compare
eb23748 to
dbe8ea0
Compare
Capturing from @SiarheiFedartsou
It may work for this specific option but not for all of them. This question was brought in the past and we decided to only set it at construction time and maintain it during We should work with @mapbox/navnative and see what options we may want to expose and if they can be updated on the fly. On a different topic, I'm not a big fan of this solution as |
|
I think the best solution is to think about |
This would mean that the implementation from this PR is already semi-deprecated and will require breaking changes in the near future to remove the introduced here mutability. In this case, I think we should refactor this option and pass it only in the |
Description
Add ability to toggle the extended kalman filter in navigation native.
bug,feature,new API(s),SEMVER, etc.)Goal
We want to be able to able to toggle the extended kalman filter path.
Implementation
Mapbox location native has a simple boolean check to see if the configuration supports EKF.
This will make it so we can enable/disable EKF at any point in the app lifecycle.
Testing
Please describe the manual tests that you ran to verify your changes
SNAPSHOTupstream dependencies if needed) through testapp/demo app and run all activities to avoid regressionsChecklist
CHANGELOGincluding this PRcc: @Guardiola31337 @mskurydin @LukasPaczos