View Single Post
  #10   Spotlight this post!  
Unread 31-01-2006, 15:46
NASAbound1636 NASAbound1636 is offline
clueless???
AKA: joe
FRC #1636 (Reds Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: colorado
Posts: 20
NASAbound1636 is an unknown quantity at this point
Re: fickle autonomous

ok to give everyone a clear picture of the problem i will post the error message and the code itself, btw i tried both of your suggestions, it didn't like either of them. (note: tabs are included in the proper areas)
Skipping file. There is no tool to process the file with the given suffix.
Skipping link step. Not all sources built successfully.
BUILD FAILED: Tue Jan 31 13:42:48 2006
#include <stdio.h>

#include "ifi_aliases.h"
#include "eeprom.h"
#include "ifi_default.h"
#include "ifi_utilities.h"
#include "serial_ports.h"
#include "terminal.h"
#include "tracking.h"
#include "tracking_menu.h"
#include "user_routines.h"
#include "camera.h"
#include "camera_menu.h"

void User_Autonomous_Code(void)
{
/* Initialize all PWMs and Relays when entering Autonomous mode, or else it
will be stuck with the last values mapped from the joysticks. Remember,
even when Disabled it is reading inputs from the Operator Interface.
*/
pwm01 = pwm02 = pwm03 = pwm04 = pwm05 = pwm06 = pwm07 = pwm08 = 127;
pwm09 = pwm10 = pwm11 = pwm12 = pwm13 = pwm14 = pwm15 = pwm16 = 127;
relay1_fwd = relay1_rev = relay2_fwd = relay2_rev = 0;
relay3_fwd = relay3_rev = relay4_fwd = relay4_rev = 0;
relay5_fwd = relay5_rev = relay6_fwd = relay6_rev = 0;
relay7_fwd = relay7_rev = relay8_fwd = relay8_rev = 0;
{
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<19)
{
pwm01=190; /* left motor */
pwm02=190; /* right motor */
pwm03=127; /* launcher motor */
pwm04=127; /* feeder motor? */
}
else if (t<38)
{
pwm01=150;
pwm02=90;
pwm03=127;
pwm04=127;
}
else if (t<95)
{
pwm01=190;
pwm02=190;
pwm03=127;
pwm04=127;
}
else if (t<380)
{
pwm01=127;
pwm02=127;
pwm03=190;
pwm04=160;
}
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

Putdata(&txdata);
}
}
}
__________________
there are 3 kinds of people in the world. those who can count, and those who can't.
Did you know that 4/3 of all people have trouble with fractions?
there are 10 kinds of people in the world, those who understand binary, and those who don't.
If you have 1 of these and you will let me use it then pm it to me