Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
With regards to the Romeo, does it have enough onboard memory to cope with more than one simple program to be stored at a time, and does it have the ability to allow the mounted push buttons to be able to select between programs...ie, could I mount a line following code assigned to button 1, and have an object avoidance code assigned to button 2....and not have to plug into the pc to change between the two??
You can merge them two (or three or more) programs manually with directives to run loop#1 when btn#1 is pressed and go to loop#2 when btn#2 is pressed and so on and so on.
(OO concept - each module of software is responsible for specific task; hence OO programming languages are widely used nowadays, as code is easier to reuse/update/debug than compared to old script-like languages).
I wouldn't worry too much about keeping your "programs" separate for simplicity, [...]
your program will be divided into separate "functions" which you'll "call" based on certain criteria e.g. which button a user has pressed as you suggest. One functionality doesn't necessarily conflict or even interact with another.
Of course you should start with something simple and get one set of functionality working first which will help you get to grips with the whole thing!
And how many decades of programming experience and how many millions of code lines are talking here?
Did you ever tried linking programs and calling them from other programs yourself, so you know what you're talking about?
You know, the needle in the hay stack is so much easier to find if the stack is small.
2 decades,
and I've not counted, why anyone would count code lines as a measure of skill or experience I've no idea.
I know awful programmers who've written lots lines of code and superb programmers whio've written much less,
in general the good ones move onto architecture, design etc.
Quote from: Soeren on July 03, 2011, 11:13:36 AMDid you ever tried linking programs and calling them from other programs yourself, so you know what you're talking about?Not relevant to my reply, or the OP's question. A raw beginner would not even consider such a thing. He wants a way to make his robot run different code without rebooting it to ease his experimentation. There are simple ways to do this.
Quote from: Soeren on July 03, 2011, 11:13:36 AMYou know, the needle in the hay stack is so much easier to find if the stack is small.And it will be small, do you think a first time programmer is going to write a large program?
That doesn't preclude him from experimenting with various functionality. Functions are usually in the opening group of chapters in any programming text.
Then you certainly should know, that for a beginner, each added function can be an added source of confusion.
We're not talking skills, but just experience here and I'd think it's basic math, that experience goes hand in hand with the work done.
So, you don't think that people learn from doing?
I'd postulate that in each individual, the more lines done lead to more experience - as a matter of fact, isn't that exactly what the word "experience" means?
Quote from: richiereynolds on July 03, 2011, 01:47:01 PMin general the good ones move onto architecture, design etc.Do you have the least shred of documentation on that?In my experience, the good ones are good because they love it so much that they cannot help doing it.
Quote from: richiereynolds on July 03, 2011, 01:47:01 PMQuote from: Soeren on July 03, 2011, 11:13:36 AMDid you ever tried linking programs and calling them from other programs yourself, so you know what you're talking about?Not relevant to my reply, or the OP's question. A raw beginner would not even consider such a thing. He wants a way to make his robot run different code without rebooting it to ease his experimentation. There are simple ways to do this.Highly relevant I'd say. You tell a guy to just go ahead with something that you haven't ever done (how you have avoided that during 2 decades is a puzzle to me though).
Hi,Quote from: newInRobotics on June 29, 2011, 09:21:48 AM (OO concept - each module of software is responsible for specific task; hence OO programming languages are widely used nowadays, as code is easier to reuse/update/debug than compared to old script-like languages).No, Object Oriented Programming (OOP) is programming where, as the name implies, you work with data as objects with all that this entails (Google opportunity )OOP has nothing to do with being "script-like" or not, scripting languages are interpreted languages, interpreted one line at a time at run time, just like eg. old variants of BASIC.