Code:
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. */
// [state machine implementation]
Putdata(&txdata); /* DO NOT DELETE, or you will get no PWM outputs! */
}
Process_Data_From_Local_IO;
}
}
It took me four hours last night to figure out why Process_Data_From_Local_IO never gets called.