Go to Post I want to see the [game] animation robot with the plunger to pick up balls and the boots that spin to kick them. Could you do that please. It would be very awesome. :D - the man [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
  #1   Spotlight this post!  
Unread 20-02-2007, 13:23
Inverted Inverted is offline
Registered User
AKA: Eric P.
FRC #1228 (Robo Tribe)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Rahway, NJ
Posts: 25
Inverted is an unknown quantity at this point
Send a message via AIM to Inverted
Code Won't Compile in MPLab with WPILib

Last night I added WPILib to my project so I could use the Wait() function. When I went to compile the code, I got this error:

Code:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "user_routines_fast.c" -fo="user_routines_fast.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066 -D_FRC_BOARD
C:\Robotics\camera streamlined\API.h:303:Error [1034] previous definition of macro 'BAUD_4800' does not agree
C:\Robotics\camera streamlined\API.h:304:Error [1034] previous definition of macro 'BAUD_9600' does not agree
C:\Robotics\camera streamlined\API.h:305:Error [1034] previous definition of macro 'BAUD_14400' does not agree
C:\Robotics\camera streamlined\API.h:306:Error [1034] previous definition of macro 'BAUD_19200' does not agree
C:\Robotics\camera streamlined\API.h:308:Error [1034] previous definition of macro 'BAUD_38400' does not agree
C:\Robotics\camera streamlined\API.h:309:Error [1034] previous definition of macro 'BAUD_57600' does not agree
C:\Robotics\camera streamlined\API.h:310:Error [1034] previous definition of macro 'BAUD_115200' does not agree
I believe these values are conflicting with ones in the serial_ports file. Then again, I could be wrong.

Any ideas how to resolve this?

Also, I was a bit unsure of the library files I had to use. Do I only use the two library files included in the WPILib distribution, or do I use the WPILib library and then either the FRC_library or the FRC_alltimers included with the default code?
  #2   Spotlight this post!  
Unread 20-02-2007, 22:12
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Code Won't Compile in MPLab with WPILib

Remove the Defines for the Baud Setting in API.h
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
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
WPILIB Port of 2007 Kickoff Code. Kingofl337 Programming 2 16-01-2007 13:50
2005 default code won't compile Robby Programming 22 04-02-2005 18:21
MplaB 5.70 won't install soundman Programming 4 08-01-2005 23:02
What is wrong with this code???? It won't Compile and I don't know why? Please Help CrashZero Programming 23 26-03-2004 09:44
Can't Compile the Default Code pressurex1 Programming 4 25-01-2004 20:26


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

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