View Single Post
  #6   Spotlight this post!  
Unread 27-01-2004, 13:59
hobbes hobbes is offline
Registered User
#0058
 
Join Date: Oct 2003
Location: South Portland, Maine
Posts: 8
hobbes is an unknown quantity at this point
Re: Autonomous help please

from user_routines.c (this is just the default 1 stick drive) we have our base built and are currently driving it around, so I know the PWMs are hooked up accordingly.

pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);


from user_routines_fast.c:

void User_Autonomous_Code(void)
{
while (autonomous_mode) /* DO NOT CHANGE! */
{
if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{
Getdata(&rxdata); /* DO NOT DELETE, or you will be stuck here forever! */

/* Add your own autonomous code here. */
pwm13 = pwm14 = 200;
pwm15 = pwm16 = 200;

Putdata(&txdata); /* DO NOT DELETE, or you will get no PWM outputs! */
}
}
}

you can see from above, all I did was tell the robot to drive foward if in autonomous, but nothing happened . Thanks for any help you can provide. Has anyone else had this problem?

~David