Terrain height and z-position estimates for rangefinder + optical flow fusion. Solved by Barometer disable. #955
Comments
Even in range finder primary height mode, the inertial data is used and the vertical GPS velocity is fused (if available). This means that even if the terrain height changes, the altitude of the EKF ( |
I had set the So I set In the the below flight, the drone took off, flew at about 1m in height and landed. In the graph you can see that the distance sensor reading is always around 1 m, but bad baro_vpos values cause the vehicle_local_position/z vary according to it. Please not that estimator_optical_flow/vel_ne.01 = _terrain_vpos Is there any way I can use set the |
This issue was solved by the following steps:
|
The height above ground range used for optical flow fusion is set as _terrain_vpos - z_position. But when I am using a rangefinder(
EKF2_HGT_MODE
is set rangefinder), the z position is directly measuring the height above the ground. In this situation, shouldn't the heightAboveGndEst be equal to _state.pos(2) or z_position?The text was updated successfully, but these errors were encountered: