Go to Post Whatever you do, make it idiot-proof. Not because your drivers are idiots, but because the fewer precision maneuvers they have to do, the more awesome driving (and scoring!) they have time to do. - Ian Curtis [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2008, 11:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,837
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: PROGRAMMING PROBLEM HELP!

Use the original released by IFI: http://www.ifirobotics.com/docs/frc-code-2007-8722.zip
The code snippet you posted earlier shows a line commented out, so it's been modified from the original.

Make sure the original compiles "as is" for you, then start adding your modifications, compiling and checking each modification as it's added. You'll catch where you've gone wrong.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-01-2008 at 12:00.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-01-2008, 12:19
ubergeek5075's Avatar
ubergeek5075 ubergeek5075 is offline
Registered User
FRC #0910 (Foley Freeze)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Troy, MI
Posts: 14
ubergeek5075 is an unknown quantity at this point
Re: PROGRAMMING PROBLEM HELP!

Whenever we have a syntax error in our code, and our code on the line and after the line is grammatically correct, our next step is to make sure we aren't defining something previously defined.

Then we look at the code above it for syntax errors. For instance, if you have a line of code before that like this:

int new_variable

and forget the semicolon, then it will cause the error on the next line following. Same goes for braces and brackets, etc.

The only other thing i can think of is that the typedef is inside a function, which causes problems.
Reply With Quote
Reply


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
Easy C programming Problem fredliu168 FIRST Tech Challenge 6 19-11-2006 22:44
Programming Problem: Extremely Frustrating chantilly_team Programming 19 12-02-2005 23:00
C programming problem... wasabi824 Programming 5 08-02-2004 01:04
multi-bank programming problem GregC Programming 3 14-02-2003 16:13
programming problem gthakore Programming 16 20-04-2002 12:21


All times are GMT -5. The time now is 10:34.

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