schwaneberg / ydlidarcar Goto Github PK
View Code? Open in Web Editor NEWUse an YDLidar X4 directly with Lego Mindstorms EV3
Use an YDLidar X4 directly with Lego Mindstorms EV3
Hi! I am trying to make the YdLidar X4 function properly on the raspberry pi 3 b+ since the results i'm getting from the company sdk are pretty bad ( the program returns almost 50% zeros even in a perfectly squared room with no movement). I found out your project and i was trying to modify it a bit in order to get the hoped results but i can't seem to be able to compile your YdLidar sdk. Could you give me a hand?
I just tried to modify the main.cpp and compiled it with the raspbian g++ command but i get just undefined reference as errors...
main.txt
Hello!
I have a slightly changed vehicle and I am looking for a solution to initialize another large motor.
I change the CarControl.h from:
CarControl();
virtual ~CarControl();
ev3dev::large_motor driveMotor;
ev3dev::medium_motor steeringMotor;
ev3dev::touch_sensor bumperSensor;
to:
CarControl();
virtual ~CarControl();
ev3dev::large_motor leftMotor(ev3dev::OUTPUT_A);
ev3dev::large_motor rightMotor(ev3dev::OUTPUT_D);
ev3dev::medium_motor steeringMotor;
ev3dev::touch_sensor bumperSensor;
but that seems to be the wrong syntax.
I also tried:
leftMotor(outA);
leftMotor(ev3dev::outA);
but they are not working either.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.