mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-22 20:53:20 +08:00
ekf2: fix comments about primary height sources
Having the xxx_hgt flag set only means that the sensor is fused for altitude/height aiding. It's not necessarily the height reference.
This commit is contained in:
committed by
Mathieu Bresciani
parent
374e70c48f
commit
b1773df441
@@ -345,7 +345,6 @@ void Ekf::get_ekf_ctrl_limits(float *vxy_max, float *vz_max, float *hagl_min, fl
|
||||
// TODO : calculate visual odometry limits
|
||||
const bool relying_on_rangefinder = isOnlyActiveSourceOfVerticalPositionAiding(_control_status.flags.rng_hgt);
|
||||
|
||||
// Keep within range sensor limit when using rangefinder as primary height source
|
||||
if (relying_on_rangefinder) {
|
||||
*hagl_min = rangefinder_hagl_min;
|
||||
*hagl_max = rangefinder_hagl_max;
|
||||
|
||||
Reference in New Issue
Block a user