Precision Landing and Loiter

Overview

Copter supports Precision Landing using the IR-LOCK sensor and a sonar or lidar, or via MAVLink LANDING_TARGET messages from a companion computer providing position differences from a target such as an April tag.

Using this system, when the vehicle enters LAND mode (and has a position aiding source, such as GPS or Optical Flow) it is possible to reliably land within 30cm of an IR beacon that is moving at less than 1m/s (unless PLND_OPTIONS bit 0 is set to allow a moving landing target) .

Copter also supports Precision Loiter which allows a vehicle to maintain its position above a target while in Loiter mode. The Pilot can enable this using one of the transmitter’s auxiliary function switches.

Precision Loiter demonstration:

Operation

Precision Landing, when enabled and active, will provide final positioning during the landing rather than via GPS data only. If the landing target is lost (ie position updates with respect to it do not occur), if PLND_STRICT has been set appropriately, it will try and climb up to a location decided by PLND_RET_BEHAVE. It will then try and come down again in hopes of seeing the landing target. It will keep doing this until PLND_RET_MAX retries have occurred. Then, depending on PLND_STRICT, it will either just land, or it will stay in the air hovering (useful for, say, landing on boats where you don’t really want to land on water).

Repositioning manually by the pilot during the landing will abort the landing unless PLND_OPTIONS bit 1 is set. Final landing speed may be reduced below LAND_SPEED as necessary to assure a precise touchdown. This can be disabled for a faster final land speed by setting PLND_OPTIONS bit 2.

Parameters

  • PLND_ENABLED set to 1 to enable this feature, refresh parameters to see following:

  • PLND_TYPE sets the type of landing position source, IR-LOCK, MAVLink LaANDING_TARGET messages,SITL, or GAZEBO sims. 0 disables.

  • PLND_XY_DIST_MAX The vehicle will not start descending if the landing target is detected and it is further than this many meters away. Set 0 to always descend.

  • PLND_STRICT How strictly should the vehicle land on the target if target is lost

  • PLND_TIMEOUT Time for which vehicle continues descend even if target is lost. After this time period, vehicle will attempt a landing retry depending on PLND_STRICT parameter.

  • PLND_RET_BEHAVE how the moves to last valid landing target report on a retry

  • PLND_ALT_MIN Vehicle will continue landing vertically even if target is lost below this height. This needs a rangefinder to work. Set to zero to disable this.

  • PLND_ALT_MAX Vehicle will continue landing vertically until this height if target is not found. Below this height if landing target is not found, landing retry/failsafe might be attempted. This needs a rangefinder to work. Set to zero to disable this.

  • PLND_OPTIONS set bit 0 if landing target is moving, set bit 1 to allow the precision landing to continue after a manual reposition, and setting but 2 makes the landing descent profile similar to the normal land mode (i.e land mode without precision landing enabled usually has faster final descent)

Other PLND_ parameters are provided to adjust for landing detector position on the vehicle, if needed.

IR-LOCK Systems

Where to get it

The IR-LOCK sensor can be purchased from irlock.com. The IR-LOCK sensor is a modified version of the Pixy camera, which comes pre-configured to work as an IR beacon detector. There are multiple IR beacons which are compatible with the sensor. The MarkOne Beacon can be reliably detected in all lighting conditions, with a detection range of 15 meters. Beacon (V1.1) is a more cost-effective option which can be reliably detected in most lighting conditions.

../_images/sensorandMarkers01.jpg

IR-LOCK Sensor and IR Beacons

Connecting to Autopilot

The IR-LOCK sensor can be connected directly to the autopiot via an I2C cable. If you are using multiple I2C sensors, then you will need an I2C splitter. More detailed instructions are included in the irlock.com Documentation.

Other PLND_ parameters are provided to adjust for landing detector position on the vehicle, if needed.

../_images/precision_landing_connect_irlock_to_pixhawk.jpg

IRLock sensor/Autopilot Wiring

Mounting to the frame

The IRLOCK sensor should be mounted to the underside of the frame with the camera lens pointing directly down toward the ground. A mounting bracket for IRIS is sold here (and pictured below). The sensor board should be oriented so that the white button on the board points towards the front of the vehicle (or to put it another way, the side closest to the camera lens should be towards the front of the vehicle).

The image below shows the camera mounted on the bottom of a 3DR IRIS+. It is probably best to mount the sensor as close as possible to the autopilot, but successful tests have also been performed with various mounting locations.

../_images/IRISbracket03.jpg

IR-LOCK Sensor Mounted onBottom of Iris+

Setup through Mission Planner

Set the following parameters through the Mission Planner (or other GCS) to enable the precision landing feature and then Reboot the autopilot.

To enable Precision Loiter, an Auxiliary Function Switch must be set to 39 to enable “Precision Loiter”

  • in versions prior to Copter-4.0, a CHx_OPT parameter could be set via Mision Planner to 39 for this enable.

Flying and Testing

Setup the vehicle with one of the flight modes set to LAND (as of the time this wiki page was written, the precision landing function only operates in LAND mode).

Place the IR beacon on the ground and take-off to approximately 10m above the target. Switch the vehicle to LAND. If everything is working properly, the copter should move toward the IR beacon. A successful demo is shown below (using an older firmware).

Tip

Be prepared to retake control if there are sudden unexpected movements (Change mode to Stabilize, AltHold or Loiter).

If the vehicle does behave appropriately, download the dataflash logs and examine the PL messages.

  • If the “Heal” (meaning health) field is not “1” then there may be a communication issue between the autopilot and IR-LOCK sensor.

  • If the “TAcq” (meaning Target Acquired) field is not “1” then the sensor is not seeing the target.

  • The pX, pY values show the horizontal distance to the target from the vehicle.

  • The vX, vY values show the estimated velocity of the target relative to the vehicle.