All you need to do is put robot_control(); in user_routines_fast.c
Code:
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. */
robot_control(); //call automous mode
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
Putdata(&txdata); /* DO NOT DELETE, or you will get no PWM outputs! */
}
}
}
Quote:
|
Originally Posted by Moloch
I have kevins nav code, and I have my drive commands entered and those work just great. Now I just need some help with the autonomous scripting. I know that its supposed to be easy, and from what I have read, it seems as though it is very easy. But after looking through the code, and reading tons of things on scripting and coding, I still need some help. I need someone to give me some code that will get my scripting commands in the command.h file to start running in auton. I dont know how to start the auton to test it. I dont really know antything about auton at all. PLEASE help me get started on this! Time is running out, I only have 5 days left!
|