Java VS Basic for robots.
Kd7lax
Posts: 42
Hey guys,
I have to do a presentation for my Java class, so I was thinking of doing one on programming robots in java compared to basic. And I am going to use my BS2 hooked up to my homemade sumo-bot for demo (people always like to see robots [noparse]:)[/noparse].
For comparison I am going to use the BS2 and the Javelin ... and was wondering if any one knows of some good articles or something that compares java to basic with robots.
Also some sample code... Maybe like a program in BASIC and a program in JAVA that do the same thing.
Any ideas for my presentation.. or good resources for information would be much appreciated.
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my website @ www.kd7lax.com- Devoted to ham radio
I have to do a presentation for my Java class, so I was thinking of doing one on programming robots in java compared to basic. And I am going to use my BS2 hooked up to my homemade sumo-bot for demo (people always like to see robots [noparse]:)[/noparse].
For comparison I am going to use the BS2 and the Javelin ... and was wondering if any one knows of some good articles or something that compares java to basic with robots.
Also some sample code... Maybe like a program in BASIC and a program in JAVA that do the same thing.
Any ideas for my presentation.. or good resources for information would be much appreciated.
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my website @ www.kd7lax.com- Devoted to ham radio
Comments
Is there much of a difference? I have never delt with embedded java before.
thanks for the ideas!
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my website @ www.kd7lax.com- Devoted to ham radio
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my website @ www.kd7lax.com- Devoted to ham radio
for the Javelin module, [noparse][[/noparse]url]http://www.parallax.com/detail.asp?product_id=JS1-IC[noparse][[/noparse]/url,
I found this little quote:
Seek and ye shall find...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock = KD4WLZ = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
http://www.parallax.com/detail.asp?product_id=JS1-IC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
A) It takes more coding to program a microcontroller in JAVA then it does in BASIC?
Java exicutes some what slower than BASIC
I am having alot of trouble finding information about BASIC .... there is alot about java but not very much about how fast BASIC is ect.
any way ... any information any one can give me.. in regards to JAVA VS BASIC (for robots) would be much appriceated.
thanks
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my website @ www.kd7lax.com- Devoted to ham radio
It is not a case of "more" or "less", per se, but rather a difference in approach. In Java everything is an object- as result all code is inherently modular- The way you structure things with Java will be different- You will also be able to run 'back ground' tasks with Java, that you will have to 'hand implement' with BASIC. In that sense certain robotic functions will in fact appear to execute faster, not slower. (For example the use of background UARTS, that can be running while other tasks continue on their way...)
Hope this helps,
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
"procedural" language, while Java is an "object-oriented" language.
I found the following article helpful in illustrating the difference:
www.cs.kent.ac.uk/pubs/2002/1517/content.pdf
The first example is a simple robot program written in a procedural
style, while the second example is the same program rewritten in an
object-oriented style.
HTH