Society of Robots - Robot Forum

Software => Software => Topic started by: gamefreak on January 26, 2008, 03:13:38 PM

Title: 50$ robot upgrade
Post by: gamefreak on January 26, 2008, 03:13:38 PM
I notice in the code of SoR_utils, the timer line is commented, but there are no directions to uncomment it, Im not familiar with atmega, but wouldnt a commented line make the line useless?
Title: Re: 50$ robot upgrade
Post by: Admin on January 26, 2008, 04:12:07 PM
The $50 Robot never used the timer . . .

If you want to use it, uncomment it in SoR_utils, and also in the makefile you will see it.

Refer to the AVRlib timer.h documentation to learn how to use it.

Parts of my code wasn't written properly to use the timer. I recommend doing the UART tutorial to make the proper changes:
http://www.societyofrobots.com/microcontroller_uart_50_robot.shtml

You don't need to hook it up to your computer, but at least have the software end set up properly for it.