PX4-Autopilot icon indicating copy to clipboard operation
PX4-Autopilot copied to clipboard

SITL Fixedwing mission can't land without range sensor

Open julianoes opened this issue 2 years ago • 2 comments

Describe the bug

I can no longer land at the end of a mission in SITL using the plane model.

The warning is:

WARN [fw_pos_control_l1] Landing aborted: terrain estimate not found

Presumably this is because there is no distance sensor configured for the plane which is now required.

It would be good to flag such a mission as invalid if there is no range sensor in the preflight check. Also, the plane SITL model should have a range sensor.

To Reproduce

Steps to reproduce the behavior:

  1. make px4_sitl gazebo_plane
  2. Plan fixedwing mission with takeoff and
  3. Fly! And keep flying...

julianoes avatar Jul 27 '22 20:07 julianoes

@julianoes thanks for raising!

It would be good to flag such a mission as invalid if there is no range sensor in the preflight check.

I can take a look at this.

Also, the plane SITL model should have a range sensor.

@Jaeyoung-Lim is this easy enough to implement?

tstastny avatar Jul 29 '22 10:07 tstastny

Also, the plane SITL model should have a range sensor.

@tstastny Yes, actually promised @ryanjAA to do this few weeks ago :smile: I will do it within this week

@julianoes @tstastny Does this mean we need a distance sensor in the default fixed wing model? I was planning to add a model called plane_lidar, but if we want to add it to the default model this is fine on myside

Jaeyoung-Lim avatar Jul 29 '22 11:07 Jaeyoung-Lim

Is there a fix for this yet or a work around?

alelse avatar Apr 25 '23 15:04 alelse