From 8d3c648a145c3199a28cc6cb5192cd8eaf9076f6 Mon Sep 17 00:00:00 2001 From: "kaia.ai" <33589365+kaiaai@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:44:26 -0800 Subject: [PATCH] Added CAMSENSE_X1 to all-lidars example --- examples/all_lidars_lds02rr_esp32/all_lidars_lds02rr_esp32.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/all_lidars_lds02rr_esp32/all_lidars_lds02rr_esp32.ino b/examples/all_lidars_lds02rr_esp32/all_lidars_lds02rr_esp32.ino index 691a485..057c037 100644 --- a/examples/all_lidars_lds02rr_esp32/all_lidars_lds02rr_esp32.ino +++ b/examples/all_lidars_lds02rr_esp32/all_lidars_lds02rr_esp32.ino @@ -42,6 +42,7 @@ const uint8_t LIDAR_GPIO_PWM = 15;// ESP32 GPIO connected to Lidar PWM pin //#define LDROBOT_LD14P //#define YDLIDAR_X4 //#define YDLIDAR_X4_PRO +//#define CAMSENSE_X1 const uint32_t SERIAL_MONITOR_BAUD = 115200; @@ -85,6 +86,8 @@ void setupLidar() { lidar = new LDS_YDLIDAR_X4(); #elif defined(YDLIDAR_X4_PRO) lidar = new LDS_YDLIDAR_X4_PRO(); + #elif defined(CAMSENSE_X1) + lidar = new LDS_CAMSENSE_X1(); #else #error "Define a Lidar model" #endif