Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
7ec6f0dc
Commit
7ec6f0dc
authored
5 years ago
by
Oleg Kalachev
Committed by
Lorenz Meier
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
lpe: use minimum flow altitude from uORB instead of hardcoding
parent
07e6730c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/local_position_estimator/sensors/flow.cpp
+1
-4
1 addition, 4 deletions
src/modules/local_position_estimator/sensors/flow.cpp
with
1 addition
and
4 deletions
src/modules/local_position_estimator/sensors/flow.cpp
+
1
−
4
View file @
7ec6f0dc
...
...
@@ -10,9 +10,6 @@ extern orb_advert_t mavlink_log_pub;
static
const
uint32_t
REQ_FLOW_INIT_COUNT
=
10
;
static
const
uint32_t
FLOW_TIMEOUT
=
1000000
;
// 1 s
// minimum flow altitude
static
const
float
flow_min_agl
=
0.3
;
void
BlockLocalPositionEstimator
::
flowInit
()
{
// measure
...
...
@@ -44,7 +41,7 @@ int BlockLocalPositionEstimator::flowMeasure(Vector<float, n_y_flow> &y)
}
// check for agl
if
(
agl
()
<
flow_min_agl
)
{
if
(
agl
()
<
_sub_flow
.
get
().
min_ground_distance
)
{
return
-
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment