Skip to content
Snippets Groups Projects
Commit 7ec6f0dc authored by Oleg Kalachev's avatar Oleg Kalachev Committed by Lorenz Meier
Browse files

lpe: use minimum flow altitude from uORB instead of hardcoding

parent 07e6730c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment