Go to Post The Chairman's award is about doing what you can to strengthen the FIRST community. It doesn't require money to simply lend tools, wise advice or a hand. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   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
  #17   Spotlight this post!  
Unread 31-01-2006, 16:09
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: fickle autonomous

You're missing a closing brace

Line 70 lines up with 32
Line 71 lines up with 30
Line 72 lines up with 27

Line 16 has an open brace but no matching closing brace
  #18   Spotlight this post!  
Unread 31-01-2006, 21:00
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: fickle autonomous

use the [ code ] tag next time, please.
  #19   Spotlight this post!  
Unread 31-01-2006, 23:35
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

what is a code tag? a thread name?
__________________
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
  #20   Spotlight this post!  
Unread 01-02-2006, 00:02
LightWaves1636's Avatar
LightWaves1636 LightWaves1636 is offline
is all over it.
AKA: Sarah Le
no team
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Austin, TX
Posts: 603
LightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to behold
Send a message via AIM to LightWaves1636 Send a message via Yahoo to LightWaves1636
Re: fickle autonomous

you weren't using the entire "bells and whistles" default programming. you were trying to make a brand new program of your own. so try again using the code me and Jake's been altering because I bet you need the vaules of what are the pwm outputs(because we've completely changed them) and a whole bunch of other stuff.

When I saw your screen, you were missing a bunch load of files. And can't just dump all the files your missing right into the workspace. Load "bells and whistles" and redo it. Or else you'll never get the autonomous code to work.

A code tag is an attachment that you can just put the code into so you don't take up half the screen.

By nickname Jake was asking, he was asking what's your nickname, not your s/n. Like mine is Light Goddess in the theatre dept.

Last edited by LightWaves1636 : 01-02-2006 at 00:11.
  #21   Spotlight this post!  
Unread 01-02-2006, 00:24
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: fickle autonomous

Quote:
Originally Posted by NASAbound1636
all brackets, parenthesis, and semicolons are accounted for. any other possibilities?
Colons and semicolons look almost identical, and it can be a real pain to find the problem when you put a colon in instead of a semicolon!

Just a thought...
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Warning to Human Players During Autonomous The Lucas General Forum 21 07-04-2005 02:29
Setting Autonomous Settings from OI Tom Saxton Programming 15 27-03-2005 11:45
Despite what IFI says, you can configure autonomous from OI... TedP Programming 19 31-03-2004 10:09
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 01:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi