Society of Robots - Robot Forum

Software => Software => Topic started by: dannytemmerman on February 26, 2009, 03:38:43 AM

Title: register for replaying robot moves
Post by: dannytemmerman on February 26, 2009, 03:38:43 AM
I want to build an expansion on my $50 robot.
I control with my remote control the robot. I salvaged this from a toy RC car.
I want some code that remembers the moves and then redoes the moves when I push a button on my remote or on my robot.
I have sorta an idea but its to messy to let it operate properly.
Would someone please help me with this?
Title: Re: register for replaying robot moves
Post by: Admin on February 26, 2009, 04:58:45 AM
Well, you need to make an array[].

The array will store two pieces of information: servo position, and time to hold that position.

So you need to use timers to record how long you push a button.

Look into these things a bit, and if you need more hints, feel free to ask for more help.
Title: Re: register for replaying robot moves
Post by: dannytemmerman on February 26, 2009, 12:10:02 PM
Well, you need to make an array[].

The array will store two pieces of information: servo position, and time to hold that position.

So you need to use timers to record how long you push a button.

Look into these things a bit, and if you need more hints, feel free to ask for more help.

I absolutely don't now how to make an array. Could you please give me an example?
I would be absolutely grateful.
Title: Re: register for replaying robot moves
Post by: Admin on February 26, 2009, 09:11:01 PM
You forgot to search google ;)

http://www.google.com/search?q=programming+an+array+C