View Single Post
  #1   Spotlight this post!  
Unread 13-02-2005, 17:09
The yellowdart's Avatar
The yellowdart The yellowdart is offline
Registered User
FRC #1506 (Metal Muscle)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Oakland County
Posts: 22
The yellowdart has a little shameless behaviour in the past
Autonomous Code trouble

can anyone find whats wrong with this code ?

static unsigned int t;

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. */
t++;
if (t <114)
{
pwm01=160;
pwm02=160;
}

i know this should run indefinitely....and that is the goal right now......but everytime i compile everything and load the code.....it doesnt work

(this is the autonomous code i wrote for the user_routines_fast.c area where it says autonomous code here..)

any help would be much appeciated

please reply or email me at Johnbk14@gmail.com