Permalink
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (40 sloc) 3.4 KB

LightWare SF40c for Object Avoidance

The Lightware SF40c 360degree lidar can be used for Object Avoidance in Copter-3.4 and higher in Loiter mode.

Warning

This feature is new for Copter-3.4 and has not been tested in a wide variety of situations. It should be used with caution.

..  youtube:: BDBSpR1Dw_8
    :width: 100%

Note

The video shows firmware which was modified to ignore the vehicle's legs. This feature is not included in AC3.4 but will be present in a future version.

Mounting the SF40c

../../../images/lightware-sf40c.png

The SF40c should be mounted on the top or bottom of the vehicle so that the rotating portion scans horizontally and its view is not obstructed by any portion of the vehicle including GPS mast, vehicle legs etc. The round gold and black lightware logo should be facing forward.

Connecting to the Pixhawk

../../../images/lightware-sf40c-pixhawk.png

The diagram above shows how the SF40c can be connected to the flight controller's serial input. The above pictures shows use of Serial4 but any free serial port can be used.

Configuration through the Ground Station

Limitation

The AC3.4 implementation has the following limitations. Future versions will likely resolve these.

  • Object avoidance only works in Loiter mode.
  • The vehicle should stop before hitting objects but will never back away from objects that approach the vehicle (a slow backing away will be added in future firmware versions).
  • The safety margin to objects is hard-coded to 2m.
  • Object avoidance only works in the direction the vehicle is travelling. This means it is possible the vehicle may scrape into a wall if the vehicle is travelling parallel to the wall.

Please report issues found in the support forums and we will try to address them.

DataFlash logging

The distance to the nearest object in 8 quadrants around the vehicle is recorded in the DataFlash log's PRX messages.