Open bsautner opened 3 years ago
I just hit the same error. Making this change to event.h got it to compile and the demos are now running properly for me:
diff --git a/sdk/sdk/src/hal/event.h b/sdk/sdk/src/hal/event.h
index 5e05234..f25d5ac 100644
--- a/sdk/sdk/src/hal/event.h
+++ b/sdk/sdk/src/hal/event.h
@@ -42,7 +42,7 @@ public:
enum
{
EVENT_OK = 1,
- EVENT_TIMEOUT = -1,
+ EVENT_TIMEOUT = 2,
EVENT_FAILED = 0,
};
Thanks - i ended up tossing out the rplidar USB adapter which also seemed defective on arrival and used an arduino to read from the RPLIDAR which worked out - there are several libraries out there and you just need a serial port
For those curious the offending line in master currently has EVENT_TIMEOUT
set to 0xFFFFFFFFFFFF
instead of -1
but that's still giving me problems on my RPI 3A+. No problems on Ubuntu 20.04 though... Setting the enum to 2
fixes the issue. Haven't figured out why. #54 probably fixes this issue.
I just bought a fancy Slamtec RPLIDAR A1 - 360 Laser Range Scanner from adafruit
this led me here to clone and make this project trying to run the ultra simple demo -
in the sdk dir i run make - i have g++ installed - errors below error code was:
make: *** [/home/ben/code/rplidar_sdk/sdk/mak_common.inc:43: make_subs] Error 1