Ev3Simaulator is an easy solution for coding and debugging your ev3 pyhton script.
- Debugging
- Codding
- No need in actual ev3
Ev3Simulator requars a pip and python to run.
Install the dependencies and devDependencies and start the server.
$ pip -install ev3simulator- LargeMotor- the simulation of LargeMotor from basic ev3 Librery
- UltrasonicSensor- the simulation of UltrasonicSensor from basic ev3 Librery
This is the exaple how to creat the realisation of Largemotor class. It's absolutly the same as using LargeMotor in basic ev3 libery.
mL = LargeMotor("outA")Things are getting trickier than you are adding an UltrasonicSensor. You shoud yuse the add_wall method to add the start and finish coordinats of your wall. And of course you can set the angle between sensor and robot vector.
usR = UltrasonicSensor("in1", angle=-40)
usR.add_wall(x_start=0, y_start=60, x_finish=130, y_finish=60)MIT
Free Software, Hell Yeah!