no matching function for call to 'RPLidar::begin(usb_serial_class&)'

Status
Not open for further replies.

Absents

New member
I've bought a LIDAR from RPLidar (http://www.robotshop.com/en/rplidar-360-laser-scanner.html). It runs fine on a Arduino UNO but I want to use the output to control a 30x60 WS2812B matrix, hence I want to use the Teensy 3.2.

I first added the library provided for Arduino (https://github.com/robopeak/rplidar_arduino) into the library folder by using the "add .zip library" in arduino (while having Teensy 3.2 choosen in the board menu). Then I compile with one of the included examples. This gives:

Code:
Using library RPLidarDriver in folder: /home/isax/Arduino/libraries/RPLidarDriver (legacy)
no matching function for call to 'RPLidar::begin(usb_serial_class&)'

I then thought that the library may need to be in the library folder for teensy, /arduino-1.6.9/hardware/teensy/avr/libraries so I manually moved the folder there and tried again.
This gives same error for the new location:

Code:
Using library RPLidarDriver in folder: /home/isax/arduino-1.6.9/hardware/teensy/avr/libraries/RPLidarDriver (legacy)
no matching function for call to 'RPLidar::begin(usb_serial_class&)'

After compiling this one time, Arduino also automatically crates a folder for the library in /home/isax/Arduino/libraries/ wich is odd.

I don't know whats going on, may it be that the library needs to be edited in order to work with Teensy? It compiles when i compile for a UNO.

(Running Kubuntu 16.04 LTS)

Cheers!!
 
Status
Not open for further replies.
Back
Top