Society of Robots - Robot Forum
Software => Software => Topic started by: Scheda on July 04, 2008, 01:14:21 PM
-
Hey all,
First off, I'm by far not new to programming, so I understand the concepts, however up until now it's all been web based languages. So, having no experience with things like C, C++, C# and BASIC, what would you say is the preferred language to code your bots with?
It's my understanding that it really all depends on the controller that you get, but I could be totally wrong on that.
Thanks for any advice on this topic that you give.
-
Hey, and welcome to the forums.
It also depends on what you have to work with. If you have only a java interpreter for your exotic microcontroller, well, that's what you are going to use, ain't it?
I use avrgcc (c++) for atmega/attiny and oshonsoft basic/asm for pic16.
-
Over all I'd say go for C. It's the most wide spread in terms of usage. It also represents the underlying machine code better than any other language, besides assembly. Object Oriented Programing can be done in C if you want to as well, you just have to follow your own rules. If you are good at C++ you can probably already manage this. And if you absolutely need C++ (Inheritance, Templates, ect) in a micro-controller environment, you probably need to go with something beefier than a μC for processing power, and just use the μC for i/o.
I use avrgcc for regular C on atmegas at home, and Tasking for regular C on ST10s at work.
-
This question has probably been asked 40 times already ;)
http://www.societyofrobots.com/robot_faq.shtml#robot_language
Remember to always search before asking! :P
-
definitely C