Author Topic: Noob Question  (Read 2595 times)

0 Members and 1 Guest are viewing this topic.

Offline Spoil9Topic starter

  • Robot Overlord
  • ****
  • Posts: 155
  • Helpful? 1
Noob Question
« on: July 23, 2008, 12:27:51 PM »
This is going to sound stupid so I'm sorry in advance.
When people talk about 'robot algorithm's', is that just another way of saying code? Or maybe the decision path the code takes?

I'm just starting to learn to program so this is all new to me. I've got an ATMega32 and downloaded WinAVR and AVR Studio and all the crap that came on the CD with the chip and I'm just so lost so I'm trying to do my research.

Thanks.
- Bill
Knowledge is Power. Power Corrupts. Study Hard. Be Evil.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: Noob Question
« Reply #1 on: July 23, 2008, 01:36:45 PM »
Yeah an 'algorithm' is just a solution to a problem. It can be written in any language you like: ie it may be in ATMega32 code - but, more often, is written in some kind of 'pseudo code' that can then be re-written for the target platform.

So if you were writing some code to 'Get the car out of the garage' - then one of the early steps in the algorithm might be: 'Make sure the garage doors are open!'. The code doesn't tell you how to do this as it can depend on your garage - you may/or not/ have padlocks on the gates etc.  ie the code cannot get 'Every car out of every garage'. So the finer details are often down to you to flesh out.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here

data_list