-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added sf45 as a seperate rangefinder
- Loading branch information
1 parent
1076591
commit 4376433
Showing
6 changed files
with
64 additions
and
36 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# LightWare SF45/B (50m) rotating Lidar | ||
|
||
|
||
![LightWare SF45 rotating Lidar](../../assets/hardware/sensors/lidar_lightware/sf45.png) | ||
|
||
|
||
## Basics | ||
|
||
This sensor is implemented in PX4 so that it published s [ObstacleDistance UORB](../msg_docs/ObstacleDistance.md) Message which then can be used for [Collision Prevention](../computer_vision/collision_prevention.md). | ||
|
||
The measurements in each sector will correspond to the lowest measurement the sensor had in that corresponding sector. | ||
|
||
## LightWare Studio Setup | ||
|
||
In the [LightWare Studio](https://www.lightwarelidar.com/resources-software) app Set following settings: | ||
| Parameter| Description| | ||
| -------- | ---------- | | ||
| Baud rate| 921600| | ||
|
||
Then also make sure the scan angles are set so that nothing on the drone interferes with the measurements. | ||
The Driver and Collision Prevention automatically handle angles different from the maximum angles. | ||
|
||
## PX4 Setup: | ||
:::info | ||
The lidar driver is not included in the default build. make sure to add it when flashing PX4 | ||
### Add the driver to the PX4 build | ||
|
||
for this add the [lightware_sf45_serial](../modules/modules_driver_distance_sensor.md#lightware-sf45-serial) driver in [menuconfig](../hardware/porting_guide_config.md#px4-menuconfig-setup): | ||
1. Under **drivers > Distance sensors** select `lightware_sf45_serial`. | ||
2. Recompile and upload to the flight controller. | ||
|
||
### Set the following parameters via QGC: | ||
|
||
|
||
| Parameter| Description| | ||
| -------- | ---------- | | ||
| <a id="SENS_EN_SF45_CFG"></a>[SENS_EN_SF45_CFG](../advanced_config/parameter_reference.md#SENS_EN_SF45_CFG) | Set to the serial port you have the sensor connected to. | | ||
| <a id="SF45_ORIENT_CFG"></a>[SF45_ORIENT_CFG](../advanced_config/parameter_reference.md#SF45_ORIENT_CFG) | Set the orientation of the sensor (facing up or down) | | ||
| <a id="SF45_UPDATE_CFG"></a>[SF45_UPDATE_CFG](../advanced_config/parameter_reference.md#SF45_UPDATE_CFG) | Set the update rate | | ||
| <a id="SF45_YAW_CFG"></a>[SF45_YAW_CFG](../advanced_config/parameter_reference.md#SF45_YAW_CFG) | Set the yaw orientation | | ||
|
||
In QGroundControl you should see an [OBSTACLE_DISTANCE](https://mavlink.io/en/messages/common.html#OBSTACLE_DISTANCE) | ||
|
||
The obstacle overlay in QGC will look like this: | ||
|
||
![sf45](../../assets/sf45/sf45_obstacle_map.png) |