Quote:
|
Originally Posted by Moloch
So....your supposed to be able to just type in user_routines_fast.c :
{CMD_DRIVE, 1000, 0, 0},
{CMD_TURN, (PI_MRAD / 2), 50, 0},
{CMD_DRIVE, 1000, 0, 0},
{NULL, 0, 0, 0
and your auto works??
|
No. Technically speaking, the script is read, not executed. If you look through the navigation code (specifically, robot.c and robot.h), you will find that it is actually a large conglomeration of a bunch of state machines.
The sample script is in commands.h. There is no commands.c.