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