Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Kevin's Commands.h?? (http://www.chiefdelphi.com/forums/showthread.php?t=33422)

kshot 26-01-2005 00:12

Kevin's Commands.h??
 
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

Re: Kevin's Commands.h??
 
Quote:

Originally Posted by kshot
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
Code:

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


Moloch 16-02-2005 18:58

Re: Kevin's Commands.h??
 
How do you link those commands to auto mode...

Astronouth7303 17-02-2005 17:12

Re: Kevin's Commands.h??
 
Check my white paper Autonomous Scripting for some help.

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


All times are GMT -5. The time now is 02:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi