Author Topic: register for replaying robot moves  (Read 1657 times)

0 Members and 1 Guest are viewing this topic.

Offline dannytemmermanTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 0
register for replaying robot moves
« 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?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: register for replaying robot moves
« Reply #1 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.

Offline dannytemmermanTopic starter

  • Full Member
  • ***
  • Posts: 48
  • Helpful? 0
Re: register for replaying robot moves
« Reply #2 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.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: register for replaying robot moves
« Reply #3 on: February 26, 2009, 09:11:01 PM »

 


data_list