Skip to content

Commit

Permalink
Airspeed Selector: add sleep in init to make sure all airspeed sensor…
Browse files Browse the repository at this point in the history
…s are started up during init

Signed-off-by: Silvan Fuhrer <[email protected]>
  • Loading branch information
sfuhrer committed Nov 13, 2019
1 parent 8669c4a commit a8a61a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/airspeed_selector/airspeed_selector_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ AirspeedModule::Run()
perf_begin(_perf_elapsed);

if (!_initialized) {
px4_sleep(2); // wait 2 seconds such that we're sure all airspeed drivers are running and publishing airspeed topics
init(); // initialize airspeed validator instances
_initialized = true;
}
Expand Down

0 comments on commit a8a61a6

Please sign in to comment.