Skip to content

Commit

Permalink
Merge pull request #3 from CAP1Sup/main
Browse files Browse the repository at this point in the history
Add Support for YDLIDAR X4 Pro - much appreciated!
  • Loading branch information
kaiaai authored Sep 14, 2024
2 parents 075c85b + 1122415 commit 275ac73
Show file tree
Hide file tree
Showing 5 changed files with 659 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ and read this [blog post](https://kaia.ai/blog/arduino-lidar-library/) for more
Please visit the [Support Forum](https://github.com/makerspet/support/discussions/)!

This library supports:
- YDLIDAR X4, X3, X3-PRO, X2/X2L, SCL models
- YDLIDAR X4, X4-PRO, X3, X3-PRO, X2/X2L, SCL models
- SLAMTEC RPLIDAR A1
- Neato XV11/Botvac
- Xiaomi Roborock Mi 1st gen LDS02RR
Expand Down Expand Up @@ -79,6 +79,9 @@ Some LiDAR/LDS models do not have built-in motor control and therefore require a

## Release notes

## v0.5.7
- added YDLIDAR X4-PRO

## v0.5.6
- added YDLIDAR SCL

Expand Down Expand Up @@ -130,7 +133,6 @@ Some LiDAR/LDS models do not have built-in motor control and therefore require a
- add Xiaomi Roborock LDS01RR
- add LDROBOT LD20
- add LDROBIT LD19P, https://github.com/Myzhar/ldrobot-lidar-ros2
- add YDLIDAR SCL
- add Hitachi-LG HLS-LFCD2
- add Dreame TBD
- reduce raw data volume
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name=LDS
version=0.5.6
version=0.5.7
author=Ilia O. <[email protected]>
maintainer=Ilia O. <[email protected]>
sentence=Laser distance scan sensors (LDS/LIDAR) wrapper/controller for kaia.ai robotics platform
paragraph=Supports YDLIDAR X4, X3, X3 PRO, X2/X2L, SCL; Xiaomi Roborock 1st gen LDS02RR; Neato XV11; SLAMTEC RPLIDAR A1; 3irobotix Delta-2A, -2B, -2G, -2A 115000; LDROBOT LD14P; CAMSENSE X1
paragraph=Supports YDLIDAR X4, X4 PRO, X3, X3 PRO, X2/X2L, SCL; Xiaomi Roborock 1st gen LDS02RR; Neato XV11; SLAMTEC RPLIDAR A1; 3irobotix Delta-2A, -2B, -2G, -2A 115000; LDROBOT LD14P; CAMSENSE X1
category=Sensors
url=https://github.com/kaiaai/LDS
architectures=*
3 changes: 2 additions & 1 deletion src/LDS.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class LDS {
ERROR_INVALID_VALUE = -12,
ERROR_UNKNOWN = -13,
ERROR_INVALID_DATA = -14,
ERROR_UNAVAILABLE = -15,
};

enum info_t {
Expand Down Expand Up @@ -100,7 +101,7 @@ class LDS {
virtual String infoCodeToString(info_t code);
virtual String pinIDToString(lds_pin_t pin);
virtual String pinStateToString(lds_pin_state_t state);

protected:
void postScanPoint(float angle_deg, float dist_mm, float quality, bool scan_completed);
void setMotorPin(float value, lds_pin_t pin);
Expand Down
Loading

0 comments on commit 275ac73

Please sign in to comment.