Log in

View Full Version : Kevin's Commands.h??


kshot
26-01-2005, 00:12
Hello All!!

I was just messing around with the programing that Kevin made, but I never found out how I can get that CMD_Drive to work right. Should I insert it as {CMD_DRIVE 1000,0,0} or something like that. Or should I just have CMD_DRIVE;. Should I put this in the user_routine_fast?

Mark McLeod
26-01-2005, 10:13
I was just messing around with the programing that Kevin made, but I never found out how I can get that CMD_Drive to work right. Should I insert it as {CMD_DRIVE, 1000,0,0} or something like that. Or should I just have CMD_DRIVE;. Should I put this in the user_routine_fast?In commands.h

struct commands command_list[] = {
{CMD_DRIVE, 2400, 0, 0},
{NULL, 0, 0, 0}
};

Moloch
16-02-2005, 18:58
How do you link those commands to auto mode...

Astronouth7303
17-02-2005, 17:12
Check my white paper Autonomous Scripting (http://www.chiefdelphi.com/forums/papers.php?s=&action=single&paperid=429) for some help.

Basically, in robot.c, it reads the array and executes the commands until it finds a NULL.