twbf / arduino Goto Github PK
View Code? Open in Web Editor NEWrobots
robots
//send scan[] or a list of the obstcles (ones under 10 cm) to map_data.php
//sending scan[] will mean that more of the processing power is on the sever
//Then when it comes time to update intended location the script can update it
// - this would mean all array math would be done in the cloud
//Thomas probably can figure out how to make the php script work but not how to get server space
//and thus ip/mac adresses to use. A couple years ago I set up a sever on my laptop but that
//isn't going to work this time
//is php or python the right route to go? We need a server side language. Python is maybe
//better because it has better syntax and can do matrix math better and in the future any
//machine learning is impossible to do in php.
// - for python I have found "Django" a high level library that will make comunicating
// simpler, assuming a wifi module will work
Semi-related question: Are our units of measurement centimeters? If so, I would not mind converting to millimeters.
It is concerning that we still do not know (in code) whether we are turning left or right when we turn. We know that we are turning and that one direction is not the other (meaning that we can consistently turn in the same direction should we wish to), but we do not know which is which because it is dependent upon which pin is connected to which motor, which is unrecoverable by the code and not described in code anywhere (although we pretend it is, accepting that it might be wrong).
I think we should handle this by changing the referenced Objects ...
//objects used
MeUltrasonicSensor ultraSensor(3); //Object used from MeMCore
MeDCMotor motor_9(9); //Objects used from MeMCore
MeDCMotor motor_10(10);
... to take values based on a configuration setting (or more likely, settings).
I believe this would have to take a form like ...
// hardware configuration
#define ultrasonicsensor_pin 3
#define leftdcmotor_pin 9
#define rightdcmotor_pin 10
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.