PX4-Autopilot
PX4-Autopilot copied to clipboard
SITL Fixedwing mission can't land without range sensor
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:
-
make px4_sitl gazebo_plane
- Plan fixedwing mission with takeoff and
- Fly! And keep flying...
@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?
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
Is there a fix for this yet or a work around?