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

ekf2: reduce GPS initialization time for SITL from 10s to 0.5s #12021

Merged
merged 1 commit into from
May 28, 2019

Conversation

bkueng
Copy link
Member

@bkueng bkueng commented May 15, 2019

Speeds up SITL startup (from PX4/PX4-ECL#603).

The ecl submodule update also includes PX4/PX4-ECL#597, which is why this PR is marked as WIP and not meant to be merged before the release.
@RomanBapst fyi.

@julianoes
Copy link
Contributor

What was the reason it took longer earlier? Do we understand the implications. I would like a reduction to 3 seconds but I wouldn't ask for 0.5 seconds. If EKF2 takes a while it should be reflected in SITL as well. You can always speed up SITL using PX4_SIM_SPEED_FACTOR.

@dagar
Copy link
Member

dagar commented May 15, 2019

I'd rather expose this as a parameter than have board specific defines in modules. That would also allow it to be used for HITL.

@bkueng bkueng force-pushed the sitl_gps_fast_init branch from c2e52d5 to d3d7f6b Compare May 16, 2019 11:55
@bkueng
Copy link
Member Author

bkueng commented May 16, 2019

@julianoes this is a usability issue: the faster we get SITL to start, the more people have time to test, and the better the experience, so they are also likely to test more. PX4_SIM_SPEED_FACTOR does not help for flight control testing.

@dagar I wanted to avoid adding another parameter, but alright.

@LorenzMeier LorenzMeier merged commit 5d6cc7d into master May 28, 2019
@LorenzMeier LorenzMeier deleted the sitl_gps_fast_init branch May 28, 2019 08:45
@bkueng bkueng changed the title [WIP] ekf2: reduce GPS initialization time for SITL from 10s to 0.5s ekf2: reduce GPS initialization time for SITL from 10s to 0.5s Jan 13, 2020
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.

4 participants